If I have a vector of unix timestamps, for example
> head(debug$time)
[1] 1.473639e+18 1.473639e+18 1.473639e+18 1.473639e+18 1.473640e+18
[6] 1.473640e+18
How can I use it as a Date
vector in order to form a ts
or xts
object ?
I need this in order to parameterise and use the bfast library docs
I tired to do the following (tz=CEST is not recognised btw):
t_ <- as.POSIXct(as.numeric(debug$time), origin = '1970-01-01')
Could you please advise on this one ?