sig | R Documentation |
Use sig()
to set the number of significant digits; use digit1()
to limit
to one digit. See examples.
sig(x, digits = 3, maxex = getOption("pmtables.maxex", NULL), ...)
digit1(x, ...)
rnd(x, digits = 0, ...)
x |
|
digits |
|
maxex |
|
... |
other arguments that are not used. |
When x
is an integer, x
is returned after coercing to character, without
further processing.
A character vector of formatted values.
sig(1.123455)
sig(0.123455)
sig(1.123455, digits = 5)
sig(1123, maxex = 3)
sig(1123, maxex = 4)
sig(1L)
digit1(1.234)
digit1(1321.123)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.