View source: R/convert_currency.r
convert_currency | R Documentation |
Get currency exchange rate between two currencies input by the user.
from |
String with the currency to change from. The format should be "XXX", for example "USD" |
to |
String with the currency to change to. The format should be "XXX", for example "CAD" |
This function need the user input the currency to change from and the currency to change to.
It will return a character vector of length two. The first element is the exchange rate. The second element is the date. If there is an error, it will return error and get the error message.
the column will be the specific date currency exchange rate and the row will be the aim currency for that exchange rate.
## Not run: convert_currency("CAD", "USD") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.