fmt_signif | R Documentation |
Format a number with the correct number of significant digits and trailing zeroes.
fmt_signif(x, digits = 3)
x |
A vector of numeric values. |
digits |
The number of significant digits values should have (defaults to 3). |
A string containing the properly-formatted number.
Justin Wilkins, justin.wilkins@occams.com
## Not run:
fmt_signif(c(36.44, 0.0002, 3336.7), digits=3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.