Learn R Programming

splusTimeDate (version 2.5.0-137)

timeEvent: Constructor Function For timeEvent Objects

Description

Constructs a timeEvent object.

Usage

timeEvent(start., end., IDs)

Arguments

The function can be called with no arguments, but if any are supplied, start. is required.
start.
a time/date object giving start times of events.
end.
a time/date object giving end times of events. If missing, defaults to one day after start., minus 1 millisecond.
IDs
the names or numbers identifying individual events in the object. If missing, defaults to empty strings.

Value

returns a timeEvent object derived from the inputs.

Details

The start., end. and IDs are put into the corresponding columns of a new timeEvent object.

See Also

timeEvent

Examples

Run this code
timeEvent() 
timeEvent(holiday.Christmas( 1990:2010 ), ID = 1990:2010) 

Run the code above in your browser using DataLab