specify_decimal | R Documentation |
Use this function to transform a given decimal number to the desired precision by choosing the number of digits after the decimal point.
specify_decimal(number, digits.to.keep)
number |
numeric |
digits.to.keep |
numeric. Refers to the digits to keep after decimal point '.'. This value should be 15 or less. |
the pruned number in string format
# 0.123
specify_decimal(0.1233213, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.