My data set truncates the seconds if it is :00
For example :
Time_TS
2022-06-22T18:48:58
2022-06-22T18:48:59
2022-06-22T18:49
2022-06-22T18:49:01
2022-06-22T18:49:59
2022-06-22T18:50
2022-06-22T18:50:01
2022-06-22T18:50:02
Hence rows 3 and 6 result in an NA
when I use the strptime fnction:
source1$Time_TSS<-strptime(source1$Time_TS, '%Y-%m-%dT%H:%M:%S')
I tried the method suggested in this post, but it doesn't seem to work. Any other ideas?