I am working on a case study. Where I would like to arrange "member_casual" from my dataset according to the weekday. When I run the code it says "Error in dots[[.index]]: subscript out of bounds"
# # analyze ridership data by type and weekday
## calculates the number of rides and average duration
## sorts member_casual column according to weekdays
## code runs fine until "arrange"
mutate(weekdays=wday(started_at,label = TRUE)) %>%
average_duration = mean(ride_length)) %>%
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
You can share your data in a forum friendly way by passing the data to share to the dput() function.
If your data is too large you can use standard methods to reduce it before sending to dput().
When you come to share the dput() text that represents your data, please be sure to format your post with triple backticks on the line before your code begins to format it appropriately.