I unknowingly uploaded data to RStudio with date-time columns in the mm-dd-yyyy format not knowing that RStudio's default is yyyy-mm-dd ( ISO8601). Is there anyway to convert the data i have in the dataframe without having to upload all of the data again?
The started_at values were returned as NA because they were, I think, in the format m/d/y H:M and you used the mdy_hms() function, which expects m/d/y H:M:S. There is a mdy_hm() function if your values do not include seconds.
lubridate::mdy_hms("5/9/2023 15:43")
[1] NA
Warning message:
All formats failed to parse. No formats found.
> lubridate::mdy_hm("5/9/2023 15:43")
[1] "2023-05-09 15:43:00 UTC"