Learn R Programming

metRology (version 0.9-16.1)

uncert-class: The 'uncert' class

Description

Object returned by uncert calls.

Usage

## S3 method for class 'uncert':
print(x, digits=NULL, right=FALSE, \dots, simplify=TRUE)

   ## S3 method for class 'uncert':
summary(object, \dots, simplify=TRUE)

Arguments

x, object
An object of class uncert
digits
Number of digits to display in budget and (if present) distribution parameter lists. Passed to format for distribution parameter list and to print.data.frame for output.
right
If TRUE, strings in uncertainty budget are right-justified. This differs from the default in print.data.frame.
...
Other parameters passed to print.data.frame
simplify
If TRUE, only the call, evaluation method, budget, value y and combined uncertainty (u.y) are printed.

Value

  • print and summary methods invisibly return the original object.

Details

summary.uncert simply calls print.uncert. An object of class "uncert" contains: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

None.

See Also

uncert, especially for calculation methods; plot.uncert, uncertMC-class, print.data.frame, format.

Examples

Run this code
expr <- expression(a+b*2+c*3+d/2)
  x <- list(a=1, b=3, c=2, d=11)
  u <- lapply(x, function(x) x/10)
  u.expr<-uncert(expr, x, u, method="NUM")
  print(u.expr)

Run the code above in your browser using DataLab