Package: states 0.3.3

states: Create Panels of Independent States

Create panel data consisting of independent states from 1816 to the present. The package includes the Gleditsch & Ward (G&W) and Correlates of War (COW) lists of independent states, as well as helper functions for working with state panel data and standardizing other data sources to create country-year/month/etc. data.

Authors:Andreas Beger [cre, aut]

states_0.3.3.tar.gz
states_0.3.3.zip(r-4.7)states_0.3.3.zip(r-4.6)states_0.3.3.zip(r-4.5)
states_0.3.3.tgz(r-4.6-any)states_0.3.3.tgz(r-4.5-any)
states_0.3.3.tar.gz(r-4.7-any)states_0.3.3.tar.gz(r-4.6-any)
states_0.3.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
states/json (API)
NEWS

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

Bug tracker:https://github.com/andybega/states/issues

Pkgdown/docs site:https://www.andybeger.com

Datasets:
  • cowstates - Correlates of War list of independent states
  • gwstates - Gleditsch and Ward list of independent states
  • polity - Polity IV combined Polity scores

On CRAN:

Conda:

country-codesindependent-statespolitical-science

6.18 score 14 stars 108 scripts 287 downloads 10 exports 15 dependencies

Last updated from:b15448281b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK146
source / vignettesOK178
linux-release-x86_64OK144
macos-release-arm64OK108
macos-oldrel-arm64OK81
windows-develOK116
windows-releaseOK85
windows-oldrelOK162
wasm-releaseOK121

Exports:comparecountry_namesid_date_sequencemissing_infoparse_dateplot_missingprettycreportsfindstate_panel

Dependencies:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

COW and G&W state lists

Rendered fromstatelists.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2020-12-10
Started: 2020-09-03

G&W and COW country code differences

Rendered fromdifferences-gw-cow.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2019-04-16
Started: 2017-09-18