View source: R/general.functions.R
roundString | R Documentation |
Round a value to a defined number of digits printing out trailing zeros, if applicable.
roundString(x, digits = 0, sci_range = Inf, sci_sep = "e", si_range)
x |
The number to round |
digits |
integer indicating the number of decimal places |
sci_range |
See help for |
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
round()
, signifString()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.