ts_to_df: ts_to_df

Description Usage Arguments Value Examples

View source: R/ts_to_df.R

Description

convert a ts to a data frame for plotting

Usage

1

Arguments

x

a ts, zoo or xts object

Value

data frame with first column the time dimension and second column the values

Examples

1
2
3
4
# df<-ts_to_df(hc4)
# head(df, 1)
## Jaar hc4
## 1850 0.03

MrOoijer/myLib documentation built on Dec. 17, 2021, 4:22 a.m.