Learn R Programming

ASSA (version 2.0)

tsframe: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab