I have xts time-series object for 10 days of data. The data is sampled at minutes frequency. Therefore, for each day, I have 1440 observations. I need to coerce
I recently have discovered a package called "tsbox".
It promises easy conversion between time series types. (here a tutorial: https://cran.r-project.org/web/packages/tsbox/vignettes/tsbox.html)
Might be useful in cases like this one.
Here an example:
library(tsbox)
nowTS <-ts_ts(formerXTS)
or the other way round if you want to convert the ts back to an xts series
library(tsbox)
nowXTS <-ts_xts(nowTS)