I am applying difftime
function on the columns started
_at
and ended
_at
and the data type of both columns is "character" but i am getting the following error.
Error in as.POSIXlt.character(x, tz, ...) :
character string is not in a standard unambiguous format
I tried this code
all_trips$ride_length <- difftime(all_trips$ended_at, all_trips$started_at, units = "secs")