Learn R Programming

rv (version 0.949)

rvattach: Attach components of rv objects to search path

Description

rvattach

Usage

rvattach(what, name='rvattach', overwrite=TRUE, impute=FALSE, ...)

Arguments

what
an rv object to be split up into a list of sub-vectors and attached
name
overwrite
If TRUE, objects with identical names in the Workspace (.GlobalEnv) that are masking objects in the database to be attached will be deleted.
impute
If TRUE, the components of each sub-vector are imputed into the object with identical name in the Workspace and saved into the list. The object in the Workspace is not affected.
...
further arguments passed to or from other methods

Details

rvattach takes an rv object, splits it up into a list of sub-vectors (using split.rv) by their name attributes and attaches the list to the search path. For example, if the object to be processed has names x[1] and y[3], this will be split into a list of two sub-vectors, x and y, and then attached. If the option impute is TRUE, the corresponding variables with the same names are merged with the ones that are found in .GlobalEnv. If the option overwrite is TRUE, the objects with identical names in the Workspace are deleted.

References

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

Examples

Run this code
#

Run the code above in your browser using DataLab