Ordering rows
Ordering aggregated data is quite a common operation. This can be elegantly accomplished by simply chaining data.table expressions together.
Deze oefening maakt deel uit van de cursus
Data Manipulation with data.table in R
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
# Compute the total trips grouped by start_station and end_station
trips_dec <- batrips[, ___, by = .(___,
___)]
trips_dec