View source: R/ExtraFunctions.R
decimals | R Documentation |
Internal function for putting extra zeros on numbers (if needed).
decimals(number, places)
number |
A number to be rounded. |
places |
Number of decimal places. |
None.
Returns a nicely formatted number. For example, 0.3 to three decimal places would be rendered as 0.300.
decimals(number = 0.3, places = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.