Skip to contents

Pre-Process Chronology of Constitutional Events (CCE) Data

Usage

prep_cce(
  cce,
  cow_fix = TRUE,
  evnttype_fix = TRUE,
  years = c(min(cce$year), max(cce$year))
)

Arguments

cce

A data.frame or data.table of CCE data.

cow_fix

Logical to hardcode changes to CCE cowcode values for Yugoslavia/Serbia, present day Germany, and present day Yemen to match official CoW designations.

evnttype_fix

Logical to hardcode (presumed) typos in evnttype coding.

years

Numeric vector of length 2 to subset data with.

Value

A data.frame of pre-processed CCE data.

Examples


cce<-demcon::get_cce(del_file=TRUE, write_out = FALSE)

cce<-demcon::prep_cce(cce, cow_fix = TRUE, evnttype_fix = TRUE)