as.vector.rv {rv}R Documentation

Coerce an rv object

Description

as.vector.rv coerces a given rv object into a vector; matrices lose their dimension attributes, but rv objects stay as rv objects (since they are considered to be ``vectors").

Usage

  as.vector.rv(x, mode="any")

Arguments

x an object
mode (currently not used)

Details

as.vector.rv removes the dimension attribute and returns the rv object. Needed for compatibility with code that uses as.vector.

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.

Examples

  #

[Package rv version 0.925 Index]