I GOT AN ERROR IN MODEL.FRAME.DEFAULT...INVALID TYPE (NULL) when I ran the below codes. @FJCC
# See the average ride time by each day for members vs casual users
> aggregate(all_trips_v2$ride_length ~ all_trips_v2$member_casual + all_trips_v2$day_of_week, FUN = mean)
Error in model.frame.default(formula = all_trips_v2$ride_length ~ all_trips_v2$member_casual + :
invalid type (NULL) for variable 'all_trips_v2$day_of_week'