RRCrisisGet | R Documentation |
Download and combine Reinhart and Rogoff's (2010) crisis dummy variables into one data frame
RRCrisisGet(
urls = c("http://www.carmenreinhart.com/user_uploads/data/22_data.xls",
"http://www.carmenreinhart.com/user_uploads/data/35_data.xls",
"http://www.carmenreinhart.com/user_uploads/data/23_data.xls",
"http://www.carmenreinhart.com/user_uploads/data/25_data.xls"),
OutCountryID = "iso2c",
message = TRUE,
standardCountryName = TRUE
)
urls |
URLs for each Excel file in the Reinhart and Rogoff data set. See https://carmenreinhart.com/browse-by-topic/. |
OutCountryID |
character string. The type of country ID you would like
to include in the output file along with the country name. See
|
message |
logical. Whether or not to notify you which of sheets are being cleaned and organised. |
standardCountryName |
logical. Whether or not to standardise the country
names variable based on |
Returns a data frame with the following columns:
iso2c
: The ISO two letter country code identifying the
country. This can be changed to another country ID system using
OutCountryID
country
: Country names.
year
: The year.
RR_Independence
: Year of independence.
RR_CurrencyCrisis
: Currency crisis.
RR_InflationCrisis
: Inflation crisis.
RR_StockMarketCrash
: Stock market crash.
RR_SovDebtCrisisDom
: Domestic sovereign debt crisis.
RR_SovDebtCrisisExt
: External sovereign debt crisis.
RR_BankingCrisis
: Banking crisis.
RR_YearlyCrisisTally
: Total number of crises per year.
Reinhart, Camen M. and Kenneth S. Rogoff, ”From Financial Crash to Debt Crisis,” NBER Working Paper 15795, March 2010. Forthcoming in American Economic Review.
## Not run:
RRDummies <- RRCrisisGet()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.