Learn R Programming

demcon (version 0.4.0)

prep_cce: Pre-Process Chronology of Constitutional Events (CCE) Data

Description

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))
)

Value

A data.frame of pre-processed CCE data.

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.

See Also

Examples

Run this code

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

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

Run the code above in your browser using DataLab