numfmt {shinyMixR} | R Documentation |
set significant digits without rounding higher numbers
Description
This function sets significant digits without rounding any numbers
Usage
numfmt(x, sdig = 3, snc = 6)
Arguments
x |
a numerical vector |
sdig |
a single number defining the number of significant digits |
snc |
a single number defining the scientific notation cutoff (higher means notation is only used for very small or very large numbers) |
Value
a character vector with formatted numbers
Author(s)
Richard Hooijmaijers
Examples
numfmt(c(0.012,12345,1))
[Package shinyMixR version 0.5.1 Index]