Learn R Programming

timeSeries (version 4031.107)

start: Start and end of a 'timeSeries'

Description

Returns start or end time stamp of a "timeSeries" object.

Usage

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

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

Value

a "timeSeries" object

Arguments

x

an uni- or multivariate "timeSeries" object.

...

optional arguments passed to other methods.

Examples

Run this code
set.seed(1234)
## Create a dummy \code{"timeSeries"} -    
   tS <- dummyMonthlySeries()[, 1]
   tS
   
## Return start and end time stamp -
   c(start(tS), end(tS))
   range(time(tS))

Run the code above in your browser using DataLab