tsframe: Time Series Frame Objects

Description Usage Arguments Examples

View source: R/tsframe.R

Description

The function tsframe creates a univariate time series object to be used in combination with the functions in the package ASSA.

Usage

1
tsframe(dates, y)

Arguments

dates

dates at which observations took place.

y

vector with time-series values sorted in ascendant way (first element in 'y' corresponds to the oldest value of the series and last element in 'y' corresponds to the newest value).

Examples

1
2
3
4
5
data(brexit); attach(brexit)
head(brexit, 3)
y <- tsframe(date, y = brexit[, 1]) # data is  
print(y) # 'list' with 4 elements: dates, the series data, and serie length.
plot(y, col = 'blue' , lwd = 2, lty = 1)

ASSA documentation built on Nov. 20, 2020, 5:10 p.m.

Related to tsframe in ASSA...