apply.rv: Apply Functions over Margins of Random Arrays

Description Usage Arguments Details Author(s) References See Also Examples

Description

The rv-compatible version of apply

Usage

1
apply.rv(X, MARGIN, FUN, ...)

Arguments

X

a random array

MARGIN

subscripts.

FUN

function.

...

optional arguments to FUN.

Details

This is the rv-compatible version of the function apply.

Author(s)

Jouni Kerman jouni@kerman.com

References

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").

See Also

apply

Examples

1
2
3
4
5
## Not run: 
  x <- rvmatrix(rvnorm(12), nrow=3, ncol=4)
  print(apply.rv(x, 1, sum))

## End(Not run)

jsta/rv documentation built on Feb. 12, 2022, 5:13 p.m.