as_ts: as_ts

as_tsR Documentation

as_ts

Description

Converts a ts_data object to a time series object (ts) in R.

Usage

as_ts(ts)

Arguments

ts

ts_data object

Value

ts object

Examples

# 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)

sigbertklinke/exams2moodle documentation built on July 6, 2023, 3:26 p.m.