get_bm_ratings: Download and calculate median credit rating over time

View source: R/sat.R

get_bm_ratingsR Documentation

Download and calculate median credit rating over time

Description

Download and calculate median credit rating over time

Usage

get_bm_ratings(end_date = Sys.Date(), per = 6)

Arguments

end_date

Last date to show credit ratings.

per

No. of historical monthends to retrieve

Details

This function rounds the end_date to the most recent monthend (in the past). Credit rating agencies might re-rate countries anytime within a month, and in making this function we are standarding the credit ratings of countries as at each monthend.

Value

Returns a data frame to be used with plot_credit_ratings()

Examples


library(Rblpapi)
blpConnect()

get_bm_ratings(end_date="2018-10-01", per=2)


yunching/tidymas documentation built on Feb. 5, 2023, 1:42 p.m.