計算多個統計量
現在把前兩個練習學到的內容結合起來,在 batrips 中對多個群組計算多個摘要統計量。
本練習屬於課程
R 的 data.table 資料操作
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Compute mean of duration and total trips grouped by start and end stations
aggregate_mean_trips <- batrips[, ___, ___]
aggregate_mean_trips