Learn R Programming

rv (version 0.949)

print.rv: Print Distribution Summary of a Random Variable

Description

Prints a summary of the random variable object.

Usage

## S3 method for class 'rv':
print(x, digits=NULL, \dots)
  ## S3 method for class 'rvfactor':
print(x, digits=NULL, \dots)
  ## S3 method for class 'rvmixed':
print(x, digits=NULL, \dots)

Arguments

x
an rv object
digits
minimal number of significant digits, default rvpar('print.digits')
...
further arguments passed to or from other methods

Details

Invokes first the summary method of the object, then prints the result.

References

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

See Also

summary.rv

Examples

Run this code
print(rvnorm(mean=rvnorm(1)))

Run the code above in your browser using DataLab