xts2ts: Change xts to ts

Description Usage Arguments Details Author(s) Examples

View source: R/xts2ts.R

Description

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.

Usage

1
xts2ts(series, freq = NULL)

Arguments

series

xts series to be changed to ts

freq

frequency of ts series

Details

This function is used internally in dsa(). Does not create values for the 29th of February.

Author(s)

Daniel Ollech

Examples

1
xts2ts(xts::xts(rnorm(1095, 10,1), seq.Date(as.Date("2010-01-01"), length.out=1095, by="days")))

dsa documentation built on June 21, 2021, 9:07 a.m.