event: Constructor Function For 'timeEvent' Objects

timeEventR Documentation

Constructor Function For timeEvent Objects

Description

Constructs a timeEvent object.

Usage

timeEvent(start., end., IDs)

Arguments

start.

a time/date object giving start times of events. The function can be called with no arguments, but if any are supplied, start. is required.

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.

Details

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

Value

returns a timeEvent object derived from the inputs.

See Also

timeEvent

Examples

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

splusTimeDate documentation built on July 7, 2022, 5:05 p.m.