Learn R Programming

hmi (version 0.9.16)

generate_interval: Function to generate an interval object

Description

Function to generate transform into an interval object from numeric (or character) vectors.

Usage

generate_interval(lower, upper, sna = FALSE)

Arguments

lower

a vector with the lower values of a variable

upper

a vector with the upper values of a variable

sna

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

Value

a character vector with the lower and upper bound values.