tr_real_long_term {treasury}R Documentation

Return the daily treasury real long-term rates

Description

Return the daily treasury real long-term rates

Usage

tr_real_long_term(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 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_yield_curve(), tr_yield_curve()

Examples


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


[Package treasury version 0.1.0 Index]