download_FRED: Get Rates from FRED

Description Usage Arguments Value See Also Examples

View source: R/download_FRED.R

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

1
2
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

1
2
3
4
5
## Not run: 
download_FRED(start = as.Date("2003-12-31"), end = as.Date("2005-01-04"),
              currency = "JPY")

## End(Not run)

creditr documentation built on May 29, 2017, 8:46 p.m.