get_bm_ratings | R Documentation |
Download and calculate median credit rating over time
get_bm_ratings(end_date = Sys.Date(), per = 6)
end_date |
Last date to show credit ratings. |
per |
No. of historical monthends to retrieve |
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.
Returns a data frame to be used with plot_credit_ratings()
library(Rblpapi) blpConnect() get_bm_ratings(end_date="2018-10-01", per=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.