I'm working on my capstone for my Google DA certificate and am currently stuck on a certain spot. Here is my input:
all_trips_v2 %>%
mutate(weekday = wday(started_at, label = TRUE)) %>%
group_by(member_casual, weekday) %>%
summarise(number_of_rides = n(),average_duration = mean(ride_length)) %>%
arrange(member_casual, weekday)
and I get this error:
Error in mutate()
:
In argument:
weekday = wday(started_at, label = TRUE)
.
Caused by error in as.POSIXlt.character()
:
! character string is not in a standard unambiguous format
Run rlang::last_trace()
to see where the error occurred.
I've delt with this error in a different scenario and was able to find a solution, but I'm not getting the same luck this time. Thanks for any input!