format_round | R Documentation |
Format numbers with rounding
format_round(x, digits = 2L)
x |
Numeric vector. The numbers to format. |
digits |
Integer. (Maximum) number of digits to be displayed after the decimal point. Defaults to 2. |
Character vector. The formatted numbers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.