Learn R Programming

rv (version 2.3.2)

Summary.rv: Summary

Description

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

Usage

# S3 method for rv
Summary(…, 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