View source: R/boe_yield_curve.R
| boe_yield_curve | R Documentation |
Downloads nominal or real gilt yields at specified maturities from the Bank of England yield curve data. Nominal par yields are available daily from late 1993; real zero-coupon yields from 1985.
boe_yield_curve(
from = "2000-01-01",
to = Sys.Date(),
maturity = c("5yr", "10yr", "20yr"),
type = c("nominal", "real"),
measure = c("par_yield", "zero_coupon"),
cache = TRUE
)
from |
Date or character (YYYY-MM-DD). Start date. |
to |
Date or character (YYYY-MM-DD). End date. Defaults to today. |
maturity |
Character vector. One or more of |
type |
Character. |
measure |
Character. |
cache |
Logical. Use cached data if available (default |
A data frame with columns:
Date. Observation date.
Character. Maturity label (e.g. "5yr").
Numeric. Yield (percent).
https://www.bankofengland.co.uk/boeapps/database/
# 10-year nominal gilt yield since 2020
boe_yield_curve(from = "2020-01-01", maturity = "10yr")
# Full nominal curve
boe_yield_curve(from = "2020-01-01")
# Real yields
boe_yield_curve(from = "2020-01-01", type = "real", measure = "zero_coupon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.