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