apply.rv {rv} | R Documentation |
apply.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': apply(X, MARGIN, FUN, ...)
X |
|
MARGIN |
|
FUN |
|
... |
further arguments passed to or from other methods |
This is the rv-compatible version of the function apply
.
Since apply
is not a generic function,
the whole name apply.rv
must be specified when calling the function
when X
is an 'rv' object.
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 <- rvmatrix(rvnorm(12), nrow=3, ncol=4) print(apply.rv(x, 1, sum))