Skip to content

Commit 62f0963

Browse files
committed
docs: some more organization
1 parent 07638ef commit 62f0963

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export(tr_bill_rates)
4-
export(tr_curve_rates)
4+
export(tr_curve_rate)
55
export(tr_forward_rate)
66
export(tr_long_term_rate)
77
export(tr_par_yields)

R/yield-curve.R

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#' Download Treasury Yield Curve Rates
1+
#' Download treasury yield curve rates
22
#'
3-
#' @param x `character(1)`. Defaults to `"hqm"`. One of:
3+
#' @param x `character(1)`. Must be one of the following options:
44
#' * `"hqm"`: The Treasury High Quality Market (HQM) Corporate Bond Yield Curve.
55
#' * `"tnc"`: The Treasury Nominal Coupon-Issue (TNC) Yield Curve.
66
#' * `"trc"`: The Treasury Real Coupon-Issue (TRC) Yield Curve.
@@ -12,16 +12,16 @@
1212
#' @returns
1313
#' A `data.frame()` with the following columns: `yearmonth`, `maturity`, `rate`.
1414
#' @family yield curve
15-
#' @source <https://home.treasury.gov/data/treasury-coupon-issues-and-corporate-bond-yield-curve/corporate-bond-yield-curve>
15+
#' @source <https://home.treasury.gov/data/treasury-coupon-issues-and-corporate-bond-yield-curves>
1616
#' @export
1717
#' @examples
1818
#' \dontrun{
19-
#' tr_curve_rates("tbi")
20-
#' tr_curve_rates("trc", "end-of-month", 2024L)
19+
#' tr_curve_rate("tbi")
20+
#' tr_curve_rate("trc", "end-of-month", 2024L)
2121
#' }
22-
tr_curve_rates <- function(x = c("hqm", "tnc", "trc", "tbi"),
23-
type = c("monthly", "end-of-month"),
24-
year = NULL) {
22+
tr_curve_rate <- function(x = c("hqm", "tnc", "trc", "tbi"),
23+
type = c("monthly", "end-of-month"),
24+
year = NULL) {
2525
stopifnot(is_count_or_null(year))
2626
x <- match.arg(x)
2727
type <- match.arg(type)
@@ -71,7 +71,7 @@ tr_curve_rates <- function(x = c("hqm", "tnc", "trc", "tbi"),
7171
do.call(rbind, res)
7272
}
7373

74-
#' @rdname tr_curve_rates
74+
#' @rdname tr_curve_rate
7575
#' @export
7676
tr_par_yields <- function(x = c("hqm", "tnc", "trc"),
7777
type = c("monthly", "end-of-month")) {
@@ -97,7 +97,7 @@ tr_par_yields <- function(x = c("hqm", "tnc", "trc"),
9797
download_data(x, nms, 6L, "maturity", "par_yield")
9898
}
9999

100-
#' @rdname tr_curve_rates
100+
#' @rdname tr_curve_rate
101101
#' @export
102102
tr_forward_rate <- function(x = c("tnc", "trc", "tbi"),
103103
type = c("monthly", "end-of-month")) {

_pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ reference:
1414

1515
- subtitle: Treasury Coupon Issues and Corporate Bond Yield Curve
1616
contents:
17-
- tr_curve_rates
17+
- tr_curve_rate

man/tr_curve_rates.Rd renamed to man/tr_curve_rate.Rd

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

0 commit comments

Comments
 (0)