range()
R/utils.R
range_noinf.Rd
This function returns c(NA, NA) instead of c(-Inf, Inf) for zero-length data without any warnings.
c(NA, NA)
c(-Inf, Inf)
range_noinf(x, na.rm = FALSE, finite = FALSE)
(numeric) a sequence of numbers for which the range is computed.
numeric
(flag) flag indicating if NA should be omitted.
flag
NA
(flag) flag indicating if non-finite elements should be removed.
A 2-element vector of class numeric.