as_ts | R Documentation |
Converts a ts_data
object into a time series object (ts
).
as_ts(ts)
ts |
|
A ts
object.
# Time series from linear trend
ts <- ts_data(12, trend.coeff= c(sample(0:10, 1), sample(1+(1:10)/20, 1)))
as_ts(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.