Package: contentiousR 0.1.0

contentiousR: Contentious Politics and Civil Conflict Research

Constructs reproducible country-year panels for research on contentious politics and civil conflict, as described in Guseinov (2026) <doi:10.2139/ssrn.7506799>. Functions build state panels keyed by Correlates of War or Gleditsch-Ward country codes and join curated socioeconomic, leadership, democracy, conflict, protest, and revolutionary-episode data on that common key, with diagnostics and plots for comparing source coverage. Bundled sources include Gapminder; the Nonviolent and Violent Campaigns and Outcomes (NAVCO) 2.1 data, Chenoweth and Shay (2019) <doi:10.7910/DVN/MHOXDV>; the Social Conflict Analysis Database, Salehyan et al. (2012) <doi:10.1080/03050629.2012.697426>; the Uppsala Conflict Data Program and Peace Research Institute Oslo (UCDP/PRIO) Armed Conflict Dataset, Gleditsch et al. (2002) <doi:10.1177/0022343302039005007>; and the Major Episodes of Contention data, Chenoweth and Kang (2026) <doi:10.1093/jopres/xjaf008>. Varieties of Democracy (V-Dem) indicators require the optional 'vdemdata' package, which is not on CRAN and can be installed from <https://github.com/vdeminstitute/vdemdata>.

Authors:Ruslan Guseinov [aut, cre]

contentiousR_0.1.0.tar.gz
contentiousR_0.1.0.zip(r-4.7-any)contentiousR_0.1.0.zip(r-4.6-any)contentiousR_0.1.0.zip(r-4.5-any)
contentiousR_0.1.0.tgz(r-4.6-any)contentiousR_0.1.0.tgz(r-4.5-any)
contentiousR_0.1.0.tar.gz(r-4.7-any)contentiousR_0.1.0.tar.gz(r-4.6-any)
contentiousR_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
contentiousR/json (API)

# Install 'contentiousR' in R:
install.packages('contentiousR', repos = c('https://rguseinov.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rguseinov/contentiousr/issues

Pkgdown/docs site:https://rguseinov.github.io

Datasets:
  • cn_bib - Bundled bibliography for cn_cite

On CRAN:

Conda:

4.30 score 1 stars 23 exports 32 dependencies

Last updated from:01ad58ae4b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK185
source / vignettesOK257
linux-releaseOK178
macos-releaseOK199
macos-oldrelOK219
windows-develOK143
windows-releaseOK153
windows-oldrelOK142
wasm-releaseOK109

Exports:add_conflictadd_from_peacescienceradd_gdpadd_lagadd_leader_dataadd_military_expenditureadd_populationadd_regionsadd_spell_durationadd_vdemas_peacesciencer_panelbuild_states_panelcn_citeconflict_dataharmonize_conflict_dataload_gdp_dataload_leader_dataload_military_expenditure_dataload_population_dataload_vdem_dataplot_coverageplot_regional_coverageplot_temporal_coverage

Dependencies:bitbit64clicliprcountrycodecpp11crayondplyrgenericsgluehmslifecyclemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangstatesstringistringrtibbletidyrtidyselecttzdbutf8vctrsvroomwithr

Comparing revolutionary-event datasets
Regional coverage | Temporal coverage | Choosing your own comparison | Reference

Last update: 2026-10-15
Started: 2026-10-15

Data sources and interpretation
Package-related transformations and explanations | Licensing

Last update: 2026-10-15
Started: 2026-10-15

Get started with contentiousR
Build and enrich a panel | Load data separately | Conflict spells (peace-years) | Lagged variables | Visualizing onsets | Optional V-Dem data | build_states_panel() | load_gdp_data() / add_gdp() | load_population_data() / add_population() | load_military_expenditure_data() / add_military_expenditure() | load_vdem_data() / add_vdem() | load_leader_data() / add_leader_data() | Interoperate with peacesciencer | References

Last update: 2026-10-15
Started: 2026-10-15

Usage example: modeling revolutionary onset
Construct the panel | Check coverage | Model onset | Reference

Last update: 2026-10-15
Started: 2026-10-15