| format_number | R Documentation |
Formats a numeric value to a specified number of decimal places, removing
leading/trailing whitespace and fixing negative zero display (e.g., "-0.00"
becomes "0.00"). When marks is supplied, applies locale-appropriate
decimal mark substitution.
format_number(x, digits, marks = NULL)
x |
Numeric value to format. |
digits |
Integer number of decimal places. |
marks |
Optional list with |
Character string with formatted value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.