from_to_dates_rates {priceR} | R Documentation |
Wrapper around 'priceR::historical_exchange_rates()' with slight modifications to structure of inputs and output
Description
Wrapper around 'priceR::historical_exchange_rates()' with slight modifications to structure of inputs and output
Usage
from_to_dates_rates(from, to, dates)
Arguments
from |
A currency code (see currencies() for supported codes) |
to |
A currency code |
dates |
A list of date ranges |
Value
A data.frame with two columns: date (of class Date), and rate (of class numeric).
Examples
## Not run:
library(lubridate)
from_to_dates_rates("AUD", "USD", dates = list(today()-10, today()))
## End(Not run)
[Package priceR version 1.0.1 Index]