Learn R Programming

lucr (version 0.2.0)

historic_currency: Get Historic Currency Data

Description

Retrieves historical data about a currency's value and exchange rate, relative to another currency.

Usage

historic_currency(dates, currency = "USD", key, ...)

Arguments

dates
a vector of dates to get data for. Strings or date objects.
currency
the currency to use as a baseline. By default this is US Dollars; while it can be changed to other currencies, that does require an 'Enterprise' OER key, and will otherwise fail.
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.