Skip to content

Commit ab37797

Browse files
committed
docs: update examples
1 parent 4e389c7 commit ab37797

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/interest-rate.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ clean_bill_rates <- function(dt) {
104104
dt[, type := vapply(maturity, `[[`, "", 1L)]
105105
dt[, maturity := vapply(maturity, `[[`, "", 2L)]
106106
dt[, maturity := gsub("wk", " weeks", maturity, fixed = TRUE)]
107-
dt[, c("date", "type", "maturity", "value")]
107+
dt[, c("date", "type", "maturity", "value")][]
108108
}
109109

110110
#' Daily treasury long-term rates
@@ -123,7 +123,7 @@ clean_bill_rates <- function(dt) {
123123
#' @examples
124124
#' \donttest{
125125
#' # get data for a single month
126-
#' tr_long_term_rate("202201")
126+
#' tr_long_term_rate("202212")
127127
#' # or for the entire year
128128
#' tr_long_term_rate(2022)
129129
#' }

man/tr_long_term_rate.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)