← Back to all sparks
S

states

INFRA · APIS
Velocity0.0

Create Panels of Independent States

State-panel tooling holding steady since its 2020 data and ergonomics release.

political-sciencepanel-datacountry-codesdatasetsmaintenance
Current state
states supplies the Gleditsch & Ward and Correlates of War state lists and the tooling to turn them into country-year or country-month panels, with plot_missing() for coverage checks. The substantive work landed in 2020; the releases since are compatibility fixes against ggplot2, dplyr, readr and testthat. The most recent entry is a single test repair.
Where it's heading
The package has reached the point where its own data and API are settled and the release trigger is upstream churn in the tidyverse. What movement there is goes toward making the two state lists interchangeable, with the microstates coding carried from G&W onto the COW data as the clearest example, rather than toward new datasets.
Prediction
The next release is most likely another compatibility pass; a data refresh would be the signal that the package is active again.

Recent moves

  1. 0y ago

    plot_missing() test fixed for the next ggplot2

    A test repair for an upcoming ggplot2 release, touching plot_missing() only in the test suite.

    View source ↗
  2. 2y ago

    ggplot2 and dplyr deprecation cleanup

    Deprecation cleanup across ggplot2 and dplyr, a roxygen2 package alias restored by hand, and stale URLs updated. Housekeeping against upstream churn.

    View source ↗
  3. 2y ago

    Bundled state data stripped to plain data frames

    The bundled cowstates and gwstates become plain data frames with the readr spec attribute stripped, and prettyc() gains shorter country names such as Belarus in place of Belarus (Byelorussia). Both are visible wherever the data is printed or joined.

    View source ↗
  4. 5y ago

    Microstate coding for COW data and state_panel() shortcuts

    The release that set the package's current shape: a microstates coding derived from G&W added to the COW data, iso3c columns renamed to gwn and cown to stop implying an ISO standard, and state_panel() taught to accept 2006, 2006-06 and 2006-06-01 style inputs with the period inferred.

    View source ↗
  5. 7y ago

    Simpler defaults for state_panel() and plot_missing()

    Smarter defaults for state_panel() and plot_missing() so that common calls need fewer arguments. The entry gives no detail beyond that.

    View source ↗