format.errors | R Documentation |
errors
Format an errors
object for pretty printing.
## S3 method for class 'errors'
format(x, digits = NULL, scientific = FALSE,
notation = getOption("errors.notation", "parenthesis"), ...)
x |
an |
digits |
how many significant digits are to be used for uncertainties.
The default, |
scientific |
logical specifying whether the elements should be encoded in scientific format. |
notation |
error notation; |
... |
ignored. |
K. Nakamura et al. (Particle Data Group), J. Phys. G 37, 075021 (2010)
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")
x <- set_errors(c(0.827, 0.827), c(0.119, 0.367))
format(x, notation="plus-minus", digits="pdg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.