atomic {rv}R Documentation

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

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.

Value

TRUE or FALSE.

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

  is.atomic(rvnorm(1))

[Package rv version 0.949 Index]