Description Usage Arguments Value Examples
Convert data.frame object to a ts
1 |
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. |
ts object with converted data.frame object.
1 2 | s.df <- data.frame( time = 1:100, s = sin( 2 * pi * 1:100 / 20 ) )
s.ts <- df2ts( s.df, "time" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.