Learn R Programming

dsa (version 1.0.12)

ts2xts: Change ts to xts

Description

Change the format of a time series from ts to xts. Has been optimised for the use in dsa(), i.e. for daily time series.

Usage

ts2xts(x_ts)

Arguments

x_ts

ts series to be changed to xts

Details

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

Examples

Run this code
# NOT RUN {
ts2xts(stats::ts(rnorm(1000, 10,1), start=c(2001,1), freq=365))
# }

Run the code above in your browser using DataLab