Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dateRange

Start and End Time Indices for a Series


Description

Returns the starting and ending times of a series in a ti object of length 2.

Usage

dateRange(x)

Arguments

x

a ts or tis time series

Value

a ti (Time Index) object of length two. The first element is the starting time index, while the second is the ending time index.

See Also

Examples

aTs <- ts(1:24, start = c(2001, 1), freq = 12)
aTis <- as.tis(aTs)
dateRange(aTs)
dateRange(aTis)

tis

Time Indexes and Time Indexed Series

v1.38
Unlimited
Authors
Jeff Hallman <jeffhallman@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.