as.interval: Function to transform objects into an interval object

Description Usage Arguments Value See Also Examples

Description

Function to transform numeric (or character) vectors or n times 2 matrices into an interval object

Usage

1
as.interval(x, sna = FALSE)

Arguments

x

An object to transform. Currently the function can transform numeric vectors and characters

sna

Boolean: if TRUE, NAs are kept as standard NAs. Otherwise they are turned into "-Inf;Inf".

Value

A vector of class interval.

See Also

generate_interval

Examples

1
as.interval(c("1000;2000", "700;700", NA))

hmi documentation built on Oct. 23, 2020, 7:31 p.m.