df2ts: Convert data.frame object to a ts

Description Usage Arguments Value Examples

View source: R/ttools.R

Description

Convert data.frame object to a ts

Usage

1

Arguments

df

data.frame with regularly sampled time series coefficients as columns and time as an additional column.

time

character vector name of time column or its numeric index.

Value

ts object with converted data.frame object.

Examples

1
2
s.df <- data.frame( time = 1:100, s = sin( 2 * pi * 1:100 / 20 ) )
s.ts <- df2ts( s.df, "time" )

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