Learn R Programming

tfarima (version 0.4.1)

tsvalue: Extract time series value by date

Description

Retrieves the value of a time series at a specific date.

Usage

tsvalue(x, date)

Value

Numeric value at the specified date.

Arguments

x

A ts object.

date

Numeric vector: c(year) for annual data or c(year, period) for seasonal data.