powered by
Change the format of a time series from xts to ts. Has been optimised for the use in dsa(), i.e. for daily time series.
xts2ts(series, freq = NULL)
xts series to be changed to ts
frequency of ts series
This function is used internally in dsa(). Does not create values for the 29th of February.
# NOT RUN { xts2ts(xts::xts(rnorm(1095, 10,1), seq.Date(as.Date("2010-01-01"), length.out=1095, by="days"))) # }
Run the code above in your browser using DataLab