Learn R Programming

rv (version 0.949)

range.rv: Distribution of the Range of a Random Vector

Description

range.rv returns a 2-component random vector containing the distributions of the minimum and the maximum values of all the given arguments.

Usage

## S3 method for class 'rv':
range(\dots, na.rm=FALSE, finite=FALSE)

Arguments

...
further arguments passed to or from other methods
na.rm
logical, indicating if NAs should be omitted
finite
logical, indicating if all non-finite elements should be omitted

Details

This is the rv-compatible version of the function range.

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

See Also

quantile.rv

Examples

Run this code
x <- rvnorm(mean=1:10, sd=1)
  print(range(x))
  print(quantile(x, c(0,1)))

Run the code above in your browser using DataLab