get_bond_data: Wrapper function to wgbDataScrapeR to retrieve sovereign...

Description Usage Arguments Value

View source: R/get_bond_data.R

Description

Wrapper function to wgbDataScrapeR to retrieve sovereign fixed income data

Usage

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
)

Arguments

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

Value

tbl_df with columns country iso, date, metric and value


ces0491/fdoR documentation built on July 19, 2021, 8:47 a.m.