Rdocumentation
powered by
Learn R Programming
lucr (version 0.2.0)
currency_convert: Convert between currencies using the Open Exchange Rates API
Description
Uses the Open Exchange Rates API to convert a series of amounts between two currencies.
Usage
currency_convert(x, from = "USD", to, key, ...)
Arguments
x
a vector of amounts, formatted as integer or numeric values.
from
the currency
x
is currently in. US Dollars by default.
to
the currency you
want
x
to be in.
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
GET
function.