Learn R Programming

czechrates (version 0.2.4)

cnbfxrate: Central bank exchange rate fixing

Description

A function returning data frame of FX rates as fixed by the central bank.

Usage

cnbfxrate(date = Sys.Date() - 1, specific_currency = "ALL")

Value

a data frame - date_valid, currency ISO code, quoted amount, rate

Arguments

date

Date of publication as date, default is yesterday.

specific_currency

ISO Code of currency, default is ALL / complete list.

Examples

Run this code
# \donttest{
  cnbfxrate(as.Date("2002-08-12"), "EUR") # EUR/CZK rate for August 12th, 2002
# }

Run the code above in your browser using DataLab