I have a large date-time series (%Y-%m-%d %H:%M:%S)
that reads as follows:
[1] 2009-10-16 00:04:30 2009-10-16 00:04:40 2009-10-16 00:04:50 2009-10-16 00:05
[5] 2009-10-16 00:05:10 2009-10-16 00:05:20
Basically the time increments by 10 secs in each step. However, at the whole minute the :00
is missing and is causing issues when I convert datetime to as.POSIXct
. (I get NA).
How can I rectify this?