I am doing some data manipulation using group_by and summarize to get a summary table between two groups. Can't get it to work. Please let me know what went wrong and if there is a better code for this. Thanks!
table_clean2 %>% group_by(member_casual) %>%
summarize(number_trips = count(member_casual),
duration_min = min(duration),
duration_max = max(duration),
duration_total = sum(duration))