Uses the Open Exchange Rates API to convert a series of amounts between two currencies.
1 | currency_convert(x, from = "USD", to, key, ...)
|
x |
a vector of amounts, formatted as integer or numeric values. |
from |
the currency |
to |
the currency you want |
key |
your Open Exchange Rates API key. See their access plans (particularly the 'forever free' plan linked at the bottom). |
... |
further arguments to pass to httr's |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.