fixer_convert {fixerapi} | R Documentation |
Convert currencies
Description
Convert from one currency to another, on a given date or using the latest available exchange rates.
Currency conversion is available on all paid plans.
Usage
fixer_convert(from, to, amount = 1, date = NULL)
Arguments
from |
Symbol of currency to convert from. |
to |
Symbol of currency to convert to. |
amount |
The numeric value of the |
date |
Optional variable. A date in YYYY-MM-DD format, or any value
that can be coerced to YYYY-MM-DD format with |
Value
A list containing the value of the conversion, the exchange rate and the date and time of the currency conversion.
Examples
## Not run:
x <- fixer_convert(from = "GBP", to = "JPY", amount = 25)
y <- fixer_convert(from = "GBP", to = "JPY",
amount = 25, date = "2018-05-05")
## End(Not run)
[Package fixerapi version 0.1.6 Index]