rv (version 2.3.4)

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

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
  x <- rvnorm(10)
  L <- as.list(x)

# }

Run the code above in your browser using DataCamp Workspace