View source: R/FormatValueNice.r
FormatValueNice | R Documentation |
Format a numeric value for use in text. This function normally outputs the number formatted to 2dp; although it will increase the number of decimal places used if the number is so close to 0 that 2dp is rendered as 0.00.
z |
Number to format |
zero.check |
Check to see if the resulting displayed value is just 0.00, and increase the number of decimal places if so (default: TRUE) |
digits |
(default: NULL) |
Matt Arnold
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.