Rev 8193 | Rev 18086 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{range}\alias{range}\alias{range.default}\title{Range of Values}\usage{range(\dots, na.rm = FALSE)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} returns a vector containing the minimum and maximum ofall the given arguments.}\details{This is a generic function; currently, it has only a default method(\code{\link{range.default}}).It is also a member of the \code{Summary} group of functions, see\code{\link{Methods}}.If \code{na.rm} is \code{FALSE}, \code{NA}and \code{NaN} values in any of the arguments will cause NA valuesto 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}.}\seealso{\code{\link{min}},\code{\link{max}},\code{\link{Methods}}.}\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}