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

View source: R/prep_cce.R

prep_cceR Documentation

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

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.

See Also

The Comparative Constitutions Project

Examples


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

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


demcon documentation built on March 31, 2023, 10:27 p.m.