as.list.rv coerces a given rv object into a list.

# S3 method for rv
as.list(x, ...)

Arguments

x

an rv object

...

arguments passed on to other methods

Details

Each component of the argument is extracted into a component of an enclosing list, which is returned.

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

Author

Jouni Kerman jouni@kerman.com

Examples


  x <- rvnorm(10)
  L <- as.list(x)