tr_real_yield_curve {treasury}R Documentation

Return the daily treasury par real yield curve rates

Description

Return the daily treasury par real yield curve rates

Usage

tr_real_yield_curve(date = NULL)

Arguments

date

character(1) or numeric(1) date in format yyyy or yyyymm. If NULL, all data is returned. Default NULL.

Value

A data.frame() with columns date, maturity and rate or NULL when no entries where found.

References

https://home.treasury.gov/treasury-daily-interest-rate-xml-feed

See Also

Other treasury data: tr_bill_rates(), tr_long_term_rate(), tr_real_long_term(), tr_yield_curve()

Examples


# get data for a single month
tr_real_yield_curve("202201")
# or for the entire year
tr_real_yield_curve(2022)


[Package treasury version 0.1.0 Index]