str_num | R Documentation |
Rounding of Numbers, and convert to string
str_num(x, digits = 2)
x |
a numeric vector. Or, for |
digits |
integer indicating the number of decimal places
( |
format(round(2, 2)) # 2
str_num(2, 2) # 2.00
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.