Learn R Programming

rv (version 0.949)

atomic: Random Vectors Are Atomic

Description

Tests whether an object is ``atomic". For compatibility, 'rv' objects are defined to be atomic.

Usage

is.atomic(x)

Arguments

x
an object, random or constant

Value

  • TRUE or FALSE.

Details

If x is not an rv object, the function returns the value of the primitive function "is.atomic".

The original function is.atomic is replaced with the function in the rv package; the original function is restored upon detaching the package.

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
is.atomic(rvnorm(1))

Run the code above in your browser using DataLab