from_to_dates_rates: Wrapper around 'priceR::historical_exchange_rates()' with...

from_to_dates_ratesR 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)


priceR documentation built on Oct. 22, 2023, 1:10 a.m.