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

base-start

Start and End of a 'timeSeries'


Description

Returns start and/or end time stamps of a 'timeSeries' object.

Usage

## S4 method for signature 'timeSeries'
start(x, ...)

## S4 method for signature 'timeSeries'
end(x, ...)

Arguments

x

an uni- or multivariate timeSeries object.

...

optional arguments passed to other methods.

Value

returns a timeSeries object.

Examples

## Create Dummy timeSeries -    
   tS <- dummySeries()[, 1]
   tS
   
## Return Start and end Time Stamp -
   c(start(tS), end(tS))
   range(time(tS))

timeSeries

Financial Time Series Objects (Rmetrics)

v3062.100
GPL (>= 2)
Authors
Diethelm Wuertz [aut] (original code), Tobias Setz [cre], Yohan Chalabi [ctb], Martin Maechler [ctb] (<https://orcid.org/0000-0002-8685-9910>)
Initial release
2020-01-24

We don't support your browser anymore

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