When I load my csv files, the milliseconds of my time variable disapear,
I think that when I load my files the milliseconds are being deleted. I tried several codes to try and display them such as:
format(coordinates$timestamps, "%H:%M:%OS3")
coordinates$timestamps <- as.POSIXct(coordinates$timestamps, format = " %H:%M:%OS3")
coordinates$time <- as.POSIXct(coordinates$time, format = ('%H:%M:%S.%f'))
coordinates <- data.frame(timestamps = as.POSIXct(Sys.time(), format = "%Y-%m-%d %H:%M:%OS4"))
format(coordinates$timestamps, "%Y-%m-%d %H:%M:%OS4")
I was expecting to get time in:
15:34:56.234
But I got this:
1970-01-01 15:34:56
Or this:
15:34:56.000
Can anyone help ? thanks !! :))