downloadRfData: Download risk-free rate data.

Description Usage Arguments Value Source See Also

Description

downloadRfData downloads the most recent risk-free rate data into the specified directory and file.

Usage

1
2
downloadRfData(maturity, file = paste0("rf-data-", Sys.Date(), ".RData"),
  dir = tempdir(), start = "2004-09-06", end = Sys.Date())

Arguments

maturity

Numerical, maturity of yield in years.

file

String, file name. Default is generated based on today's date.

dir

String, directory of the file. Default is generated temporary directory.

start

Date (or an object that can be parsed using as.Date), start of the period.

end

Date (or an object that can be parsed using as.Date), end of the period.

Value

String, file path where the downloaded data is stored.

Source

Data comes from ECB.

See Also

getRfData, downloadFundData.


nickto/PensionFundsLv documentation built on May 23, 2019, 5:08 p.m.