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 kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
x <- rvnorm(mean=1:10, sd=1) print(range(x)) print(quantile(x, c(0,1)))