I GOT AN ERROR IN MODEL.FRAME.DEFAULT...INVALID TYPE (NULL) when I ran the below codes.

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'

I think that means that you think there is a column called day_of_week inside of all_trips_v2, but there isn't in your case; recommend you review that.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.