new_iv {ivs}R Documentation

Construct a new iv

Description

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 than end, or both start and end 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.

Value

A new iv object.

Examples

new_iv(1, 2)

[Package ivs version 0.2.0 Index]