This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/range.html
range {base}R Documentation

Range of Values

Description

range returns a vector containing the minimum and maximum of all the values present in its arguments. If na.rm is FALSE, an NA value in any of the arguments will cause values of NA to be returned, otherwise NA values are ignored.

This definition of range should not be confused with the sample range.

Usage

range(..., na.rm = FALSE)

See Also

min, max.

Examples

print(r.x <- range(rnorm(100)))
diff(r.x) # the SAMPLE range

[Package base version 0.60 ]