thanks for your code, i tried using your code to convert one of my variables as well, but im getting an error. I am a beginner data scientist so please forgive my easy mistakes.
my time variable is formatted:
06/28/2019 05:09:07 PM
My code is below:
transitdata <- transitdata %>% mutate(year = year(Time), month = month(Time), day = day(Time), hour = hour(Time), minute = minute(Time), second = second(Time) )
Error in as.POSIXlt.character(x, tz = tz(x)) : character string is not in a standard unambiguous format.