as.currency | R Documentation |
Given a numeric vector, format it as currency, implicitly changing it to a string.
as.currency(x)
x |
a numeric vector to be formatted |
Think about using formattable::currency() instead, which preserves numbers (but displays them as currency).
a vector of strings formated as currency, with commas and dollar signs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.