Lubridate not converting datetime to POSIXct correctly in R (dd/mm/yy hh:mm:ss) [closed]
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Improve this question I'm trying to convert my datetime from a csv to POSIXct for data analysis. I've tried multiple codes but either get NA or a wrong format. The code I'm currently using is GRS$datetimelocal<- GRS$`datetime` %>% ymd_hms(tz="UTC") %>% # first convert the `Date and