apply.rv | R Documentation |
The rv
-compatible version of apply
apply.rv(X, MARGIN, FUN, ...)
X |
a random array |
MARGIN |
subscripts. |
FUN |
function. |
... |
optional arguments to |
This is the rv-compatible version of the function apply
.
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")
.
apply
## Not run: x <- rvmatrix(rvnorm(12), nrow=3, ncol=4) print(apply.rv(x, 1, sum)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.