format.errors: Encode 'errors'

View source: R/print.R

format.errorsR Documentation

Encode errors

Description

Format an errors object for pretty printing.

Usage

## S3 method for class 'errors'
format(x, digits = NULL, scientific = FALSE,
  notation = getOption("errors.notation", "parenthesis"), ...)

Arguments

x

an errors object.

digits

how many significant digits are to be used for uncertainties. The default, NULL, uses getOption("errors.digits", 1).

scientific

logical specifying whether the elements should be encoded in scientific format.

notation

error notation; "parenthesis" and "plus-minus" are supported through the "errors.notation" option.

...

ignored.

Examples

x <- set_errors(1:3*100, 1:3*100 * 0.05)
format(x)
format(x, digits=2)
format(x, scientific=TRUE)
format(x, notation="plus-minus")


Enchufa2/errors documentation built on Dec. 11, 2023, 2:30 a.m.