aperm.rv {rv}R Documentation

Random Array Transposition

Description

Transpose a random array by permuting its dimensions and optionally resizing it.

Usage

  ## S3 method for class 'rv':
  aperm(x, ...)

Arguments

x the random matrix to be transposed
... further arguments passed to aperm

Details

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

Since aperm is not a generic function, the whole name aperm.rv must be specified when calling the function when X is an 'rv' object.

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

See Also

aperm

Examples

  x <- rvarray(rvnorm(24), dim=c(2,3,4))
  print(aperm.rv(x))

[Package rv version 0.949 Index]