I am trying to convert a chr into a number. The number I am trying to convert is "20171023063155.557". When I use the as.numeric function, it gives me 20171023063155.559. I have tried a few different methods but cannot get it to convert correctly.
Any help would be much appreciated.
as.POSIXct("20171023063155.557", format = "%Y%m%d%H%M%OS")
[1] "2017-10-23 06:31:55 PDT"
> as.POSIXct("20171023063155.557", format = "%Y%m%d%H%M%S")
[1] "2017-10-23 06:31:55 PDT"