Learn R Programming

creditr (version 0.6.1)

download_FRED: Get Rates from FRED

Description

download_FRED returns the deposits and swap rates for the day input, along with the date conventions for that specific currency. The source is FRED.

Usage

download_FRED(start = as.Date("2004-01-01"), end = as.Date("2005-01-04"), currency = "JPY")

Arguments

start
is the start date of the data frame we want
end
is the end date of the data frame we want
currency
is the three-letter currency code. As of now, it works for USD, EUR, and JPY. The default is JPY.

Value

a data frame that contains the rates based on the ISDA pecifications

See Also

download_markit build_rates

Examples

Run this code
## Not run: 
# download_FRED(start = as.Date("2003-12-31"), end = as.Date("2005-01-04"),
#               currency = "JPY")
# ## End(Not run)

Run the code above in your browser using DataLab