Hi! I'm currently doing a case study to analyze how casual riders and annual members use bikes differently.
The following code will not run.
# analyze ridership data by type and weekday all_trips_v2 %>% mutate(weekday = wday(started_at, label = TRUE)) %>% #creates weekday field using wday() group_by(member_casual, weekday) %>% #groups by usertype and weekday summarise(number_of_rides = n() #calculates the number of rides and average duration ,average_duration = mean(ride_length)) %>% # calculates the average duration arrange(member_casual, weekday) # sorts
While I do have a preference towards Python. I am warming up to R. Any errors I come across in R, I would like to learn as to why this errors arise and not repeat them in the future. Any help would be appreciated.