Is there any function in R that can convert dates?

2

Good afternoon,

I'm new to the R language, and I need a little help. I would like to know if there is a function that changes the date of the timestamp, it was to be time and date, but the database made me available the way it is in the image. I've been looking for some functions from given to R, but nothing applies in the situation that is the data that is available. Thank you

    
asked by anonymous 08.05.2018 / 20:30

1 answer

2

Kicking over data from a sensor I do not know.

The data can make some sense if: 1. The timestamp is registering in milliseconds; 2. They show the time needed to measure n samples.

To get timestamp time

as.POSIXct(1.523365e12/1000, origin="1970-01-01")
[1] "2018-04-10 09:56:40 BRT"

Look at the difference between the third and the first timespamp.

(1.523372e12 - 1.523365e12)/1000/5 = 1400

That is close to (698 + 697 = 1395) samples between collections. Maybe if the timestamp had an extra decimal, it would be more accurate. But to confirm this, you will need the sensor manual.

    
08.05.2018 / 23:01