I am trying to create a csv file by on a PC. I have tried a few codes, but it is not coming together. I am new to RStudio. Below is the code and error message. Please help
Data_Frame <- aggregate(all_trips_v2$ride_length ~ all_trips_v2$member_casual + all_trips_v2$day_of_week, FUN = mean)
There is a function named df and R thinks you are trying write that to a csv. That is why the error message says "cannot coerce class ‘"function"’ to a data.frame"