View source: R/currency2unicode.R
currency2unicode | R Documentation |
Retrieve Unicode character for a currency
currency2unicode(currency, type = c("character", "code"))
currency |
character string or a vector of strings. Supported values are accounting sign, afghani, armenian dram, austral, baht, bitcoin, boliviano, cent, cedi, currency, dollar, dong, drachma, dutch guilder, euro, franc, georgian lari, german penny, hryvnia, indian rupee, iranian rial, kip, lari, lira, livre tournois, manat, mark, new shekel, pakistani rupee, peso, pound, quetzal, real, rial, ruble, shekel, spesmilo, syrian pound, tenge, tugrik, turkish lira, won, yen, yuan. |
type |
indicate whether the Unicode |
The input is evaluated case insensitive. In case the input is not supported, the function will return the original input.
currency2unicode
the unicode character for a given currency.
Mathijs Deen
currency2unicode("dollar")
cat(sprintf("%s5 is all my mom allows me to spend.", currency2unicode("dollar")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.