mround | R Documentation |
This function can be used for tables, e.g. when trailing zeros are wanted.
mround(x, digits = 1)
x |
Numeric object. |
digits |
Number of digits after comma, default = 1. |
Rounded character object with trailing zeros.
mround(10.123, digits = 1) # "10.1" mround(10.000, digits = 1) # "10.0"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.