ComeçarComece de graça

Ordering rows

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

Este exercício faz parte do curso

Data Manipulation with data.table in R

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Compute the total trips grouped by start_station and end_station
trips_dec <- batrips[, ___, by = .(___, 
                                  ___)]
trips_dec
Editar e executar o código