Learn R Programming

priceR (version 1.0.2)

from_to_dates_rates: 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)

Value

A data.frame with two columns: date (of class Date), and rate (of class numeric).

Arguments

from

A currency code (see currencies() for supported codes)

to

A currency code

dates

A list of date ranges

Examples

Run this code
if (FALSE) {
library(lubridate)
from_to_dates_rates("AUD", "USD", dates = list(today()-10, today()))
}

Run the code above in your browser using DataLab