new_iv: Construct a new iv

View source: R/iv.R

new_ivR 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)

DavisVaughan/ivs documentation built on March 18, 2023, 3:20 p.m.