RRCrisisGet: Download and combine Reinhart and Rogoff's (2010) crisis...

View source: R/Getters.R

RRCrisisGetR Documentation

Download and combine Reinhart and Rogoff's (2010) crisis dummy variables into one data frame

Description

Download and combine Reinhart and Rogoff's (2010) crisis dummy variables into one data frame

Usage

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
)

Arguments

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 countrycode for available options.

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 country.name from countrycode.

Value

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.

Source

Reinhart, Camen M. and Kenneth S. Rogoff, ”From Financial Crash to Debt Crisis,” NBER Working Paper 15795, March 2010. Forthcoming in American Economic Review.

Examples

## Not run: 
 RRDummies <- RRCrisisGet()
 
## End(Not run)


rOpenGov/psData documentation built on July 30, 2023, 10:05 p.m.