Extract.rv {rv} | R Documentation |
Bracket slice and assignment methods adapted for random vectors and arrays.
x
may also be a regular vector that is automatically coerced
into an rv object if the compatibility flag has been
set to 1 by rvcompatibility(1)
(this is the default).
value
may be an rv object or a regular numeric object.
Extracting rv objects works the same way as extracting components of a numerical vector or array. The return value is always an object of class 'rv'. Type ?Extract for details.
Note: the index arguments (i
, j
, etc.) may be
themselves random variables, however they will be coerced
into integers, as one would expect.
A random variable (an rv object).
Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.
See rvcompatibility for examples.
#