tsframe {ASSA}R Documentation

Time Series Frame Objects

Description

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

Usage

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

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)

[Package ASSA version 2.0 Index]