Computing multiple stats
Let's now combine everything from the past two exercises to find multiple summary statistic with multiple groups in batrips
.
This exercise is part of the course
Data Manipulation with data.table in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Compute mean of duration and total trips grouped by start and end stations
aggregate_mean_trips <- batrips[, ___, ___]
aggregate_mean_trips