R POSIXct returns NA with “03/12/2017 02:17:13”
问题 I have a data set containing the following date, along with several others 03/12/2017 02:17:13 I want to put the whole data set into a data table, so I used read_csv and as.data.table to create DT which contained the date/time information in date. Next I used DT[, date := as.POSIXct(date, format = "%m/%d/%Y %H:%M:%S")] Everything looked fine except I had some NA values where the original data had dates. The following expression returns an NA as.POSIXct("03/12/2017 02:17:13", format = "%m/%d/