as.list.rv: Coerce a random vector object to a list

as.list.rvR Documentation

Coerce a random vector object to a list

Description

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

Usage

## S3 method for class '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.

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

Examples


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


rv documentation built on March 18, 2022, 5:55 p.m.