Learn R Programming

rv (version 1.1.0)

Summary.rv: Summary

Description

Methods applied to rv objects for the generic functions all, any, sum, min, max.

Usage

## S3 method for class 'rv':
Summary(\dots, na.rm=FALSE)

Arguments

...
rv object
na.rm
logical, remove NAs?

References

Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.

See also vignette("rv").

Examples

Run this code
x <- rvnorm(5)
  all(x>0)
  any(x>2)
  sum(x)
  min(x)
  max(x)

Run the code above in your browser using DataLab