View source: R/btools_formatting.r
f_dollar | R Documentation |
f_dollar
dollar format - calls scales::label_dollar
f_dollar(num, ...)
num |
numeric vector to format |
... |
arguments passed to scales::label_dollar |
format the vector using scales::label_dollar
formatted values as a character vector.
f_dollar(1.2345) f_dollar(1.2345, scale=1000) f_dollar(1.2345, scale=1000, accuracy=0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.