tsvalue function

Value of a time series at a date

Value of a time series at a date

tsvalue select a value from a time series by date.

tsvalue(x, date)

Arguments

  • x: an ts object.
  • date: the time of the specific observation, c(year, month/quarter).

Returns

The value of the observation, double.