Ordering rows
Ordering aggregated data is quite a common operation. This can be elegantly accomplished by simply chaining data.table expressions together.
Latihan ini adalah bagian dari kursus
Data Manipulation with data.table in R
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Compute the total trips grouped by start_station and end_station
trips_dec <- batrips[, ___, by = .(___,
___)]
trips_dec