If both start
and end
are given, they must
have the same length. They are used to define the
intervals of the object. If data
is also given, it
must have a number of rows identical to the length of
start
and end
. If only start
is given, a continuous (see
continuous
) TimeIntervalDataFrame is built.
The first element of start
is the start of the
first interval, the second element is the end of the
first interval and the start of the second interval. The
last element of start
is only the end of the last
interval. This is why data
, if given, must be one
row shorter than start
.
If period is given it must be a POSIXctp
object (or a valid character) and start and
end must have length equal to 1. In that case, a
TimeIntervalDataFrame will be created with start date
equal to start floored by the unit of
period, end date ceiled by the unit of
period and with enough intervals of
period length to fit. If data given, it
must have a number of rows equal to the number of
intervals calculated.
To access to the class documentation, type in the R
console :
class?TimeIntervalDataFrame