ts2Daily | R Documentation |
Convert the time-series data to daily data.
ts2Daily(x, FUN = mean, ...)
x |
xts,zoo data. |
FUN |
function. |
... |
more options in xts::apply.daily() |
xts data whose time index is daily.
library(xts)
x=as.xts(rnorm(100), order.by = as.POSIXct('2000-01-01')+ 1:100 * 3600*24)
xd = ts2Daily(x)
class(time(x))
class(time(xd))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.