View source: R/general.functions.R
signifString | R Documentation |
Round a value to a defined number of significant digits printing out trailing zeros, if applicable.
signifString(x, ...)
## S3 method for class 'data.frame'
signifString(x, ...)
## Default S3 method:
signifString(x, digits = 6, sci_range = 6, sci_sep = "e", si_range, ...)
x |
The number to round |
... |
Arguments passed to methods. |
digits |
integer indicating the number of significant digits |
sci_range |
integer (or |
sci_sep |
The separator to use for scientific notation strings (typically this will be either "e" or "x10^" for computer- or human-readable output). |
si_range |
Deprecated, please use |
Values that are not standard numbers like Inf
, NA
, and
NaN
are returned as "Inf"
, "NA"
, and NaN
.
A string with the value
signif()
, roundString()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.