Description Usage Arguments Value
View source: R/get_bond_data.R
Wrapper function to wgbDataScrapeR to retrieve sovereign fixed income data
1 2 3 4 5 6 7 8 | get_bond_data(
country_iso,
metric,
start_date,
end_date,
frequency = c("daily", "weekly", "monthly", "quarterly", "annual"),
include_forecast = FALSE
)
|
country_iso |
character vector containing 2 letter country iso codes |
metric |
string indicating whether you'd like to return sovereign rating, cds or yield data. sovereign rating defaults to S&P |
start_date |
start date |
end_date |
end date |
frequency |
string indicating the periodicity of data to retrieve - one of daily, weekly, monthly, quarterly or annual |
include_forecast |
logical indicating whether forecasts should be included for the yield metrics - default to FALSE |
tbl_df
with columns country iso, date, metric and value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.