CommencerCommencer gratuitement

Ordering rows

Ordering aggregated data is quite a common operation. This can be elegantly accomplished by simply chaining data.table expressions together.

Cet exercice fait partie du cours

Data Manipulation with data.table in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Compute the total trips grouped by start_station and end_station
trips_dec <- batrips[, ___, by = .(___, 
                                  ___)]
trips_dec
Modifier et exécuter le code