range.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")
.
quantile.rv
x <- rvnorm(mean=1:10, sd=1) print(range(x)) print(quantile(x, c(0,1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.