ts2df: Convert ts object to a data.frame

Description Usage Arguments Value Examples

View source: R/ttools.R

Description

Convert ts object to a data.frame

Usage

1
ts2df(s)

Arguments

s

time series object

Value

data.frame with time as column 1, time series as remaining columns.

Examples

1
2
3
s <- ts( data = sin( 2 * pi * (1:100) * 0.1 ), start = 1, end = 100, deltat = 1 )
S.df <- ts2df( s )
head( S.df )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.