range.rv {rv} | R Documentation |
range.rv
returns a 2-component random vector containing
the distributions of the minimum and the maximum values of all the given arguments.
## S3 method for class 'rv': range(..., na.rm=FALSE, finite=FALSE)
... |
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 |
This is the rv-compatible version of the function range
.
Jouni Kerman jouni@kerman.com
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.
x <- rvnorm(mean=1:10, sd=1) print(range(x)) print(quantile(x, c(0,1)))