new_iv()
is a developer focused function for creating a new interval
vector. It does minimal checks on the inputs, for performance.
Usage
new_iv(start, end, ..., class = character())
Arguments
- start, end
[vector]
A pair of vectors to represent the bounds of the intervals.
To be a valid interval vector,
start
must be strictly less thanend
, or bothstart
andend
must be a missing value.- ...
[name-value pairs]
Additional named attributes to attach to the result.
- class
[character]
The name of the subclass to create.