Rev 5229 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{range.default}\alias{range.default}\title{Range of Values}\usage{range.default(\dots, na.rm = FALSE, finite = FALSE)}\arguments{\item{\dots}{any \code{\link{numeric}} objects.}\item{na.rm}{logical, indicating if \code{\link{NA}}'s should beomitted.}\item{finite}{logical, indicating if all non-finite elements shouldbe omitted.}}\description{\code{range.default} returns a vector containing the minimum andmaximum of all the values present in its first arguments, unless\code{na.rm} or \code{finite} is \code{TRUE}. If \code{na.rm} is\code{FALSE}, \code{NA} and \code{NaN} values in any of thearguments will cause NA values to be returned, otherwise \code{NA}values are ignored. If \code{finite} is \code{TRUE}, the minimumand maximum of all finite values is computed, i.e.,\code{finite=TRUE} \emph{includes} \code{na.rm=TRUE}.}\details{This is the default method of the generic function\code{\link{range}}.}\seealso{\code{\link{range}},\code{\link{min}},\code{\link{max}}.}\examples{print(r.x <- range(rnorm(100)))diff(r.x) # the SAMPLE rangex <- c(NA, 1:3, -1:1/0); xrange(x)range(x, na.rm = TRUE)range(x, finite = TRUE)}\keyword{univar}\keyword{arith}