Skip to content

Commit

Permalink
initial commit version 0.0.0.9000
Browse files Browse the repository at this point in the history
grfiv committed Feb 1, 2016
1 parent dc24b08 commit e7e361d
Showing 4 changed files with 28 additions and 7 deletions.
4 changes: 4 additions & 0 deletions R/APY.R
Original file line number Diff line number Diff line change
@@ -7,6 +7,10 @@
#' @param percent boolean, if TRUE, i should be divided by 100
#' (for example 7.87 becomes 0.0787)
#' @return APY yield(s) as a decimal (not as a percent)
#' @references
#' Interest Rates - Frequently Asked Questions
#'
#' \url{https://www.treasury.gov/resource-center/faqs/Interest-Rates/Pages/faq.aspx#2}
#' @examples
#' APY(0.0800) #> [1] 0.0816
#'
12 changes: 9 additions & 3 deletions R/USTreasuryRates.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#' Download Constant-Maturity Treasury (CMT) rates
#'
#' For the dates 1962-01-02 to 2015-12-31 the data is retrieved from a static
#' file that was previously created from the data downloaded from
#' \url{http://www.federalreserve.gov/datadownload/Choose.aspx?rel=H15}; the
#' file that was previously created from the data downloaded; the
#' data for 2016-01-01 to present are pulled from an XML feed from the US
#' Treasury accessed in real time.
#'
@@ -50,9 +49,16 @@
#'
#' Y30 1977-02-15
#'
#' #@param no parameters
#' @return \code{data.frame} containing daily rates from 1962 to the
#' most-recently completed business day.
#' @references
#' Static Data
#'
#' \url{http://www.federalreserve.gov/datadownload/Choose.aspx?rel=H15}
#'
#' XML Data
#'
#' \url{http://data.treasury.gov/feed.svc/DailyTreasuryYieldCurveRateData}
#' @examples
#' all_data <- USTreasuryRates()
#' head(all_data)
5 changes: 5 additions & 0 deletions man/APY.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions man/USTreasuryRates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e7e361d

Please sign in to comment.