R Observatory
Search
install.packages("states")
CRAN 30-day downloads, method
479+20.1% up on the 30 days before, the better direction
Test coverage, method
84%of lines run by tests

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.

Maintainer
Andreas Beger
Latest release
25 Aug 2025
First release
23 Feb 2018

Compare with another package

More details
Releases
7
Needs compilation
No
Needs R
>= 2.10
Config/testthat/edition
3
LazyData
true
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("states")
APA
Beger, A. (2025). states: Create Panels of Independent States (Version 0.3.3) [Computer software]. https://doi.org/10.32614/CRAN.package.states
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for states version 0.3.3 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    0.3.3
    Time taken
    66 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    0.3.3
    Time taken
    51 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    0.3.3
    Time taken
    59 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    0.3.3
    Time taken
    49 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    94 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    0.3.3
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    63 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    104 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    62 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    60 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    0.3.3
    Time taken
    23 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    86 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    0.3.3
    Time taken
    89 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (5)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
8 Jun 2026OK13000
7 Jun 2026Warning12010
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
481+13.7% up on the 30 days before, the better directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

6,541 of 26,530

CRAN

479 downloads in the last 30 days

Rank
6,541 of 26,530
Change
+20.1% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

1 downloads in the last 30 days

Rank
19,986 of 30,526
Change
−80% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

1 downloads in the last 30 days

Rank
25,688 of 29,212
Change
−94.7% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
4
Dependent packages
1
Suggested by
0
Needs (4)
Installing it adds
15 packages, 5.2 MB of source
Of those, need compilation
9
Optional extras (8)
Dependent packages (1)
PackageTitleDownloads in 30 days
contentiousRContentious Politics and Civil Conflict Research254
Functions
18
Public exports
10
Lines of R code
1,149
Median complexity
4
Functions (18)
Size and composition

Lines by kind (2,400)

KindLinesShare
R code1,14948%
Tests55723%
Documentation62726%
Guides673%

Lines by language

LanguageLinesShare
R1,70671%
Rd62726%
Vignettes673%

Languages are counted from file extensions.

Files
53
R functions
18
Object systems
S3: 2 methods
Deprecated functions
2
Complexity
Median
4
Mean
5.39
Highest
27
Median lines per function
31.5
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
18
Calls
10
Unconnected
7
Groups
2
Growth (7 releases)
Total lines by release
913 on 23 Feb 20182,400 on 25 Aug 2025
Release changes

The tests ran and coverage was measured.

Lines run by tests
84.3%
Expressions run by tests
84.4%
Test cases
35
Exports named in tests
90%
Coverage by file (7)
Coverage run
Lines counted
421
Lines the tests ran
355
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
35
Lines of tests
557
Test lines per line of code
0.48
Exports documented
100%
Arguments documented
100%
Return value documented
25%
Help pages with examples
68.8%
Examples run in checks
100%
Guides (2)
Other documentation
README
Yes, 268 words
Release notes file
Yes
Help pages
16
Lines of documentation
627
DatasetSizeColumns
cowstatesCorrelates of War list of independent states243 × 6cowcode, cowc, country_name, start, end, microstate
gwstatesGleditsch and Ward list of independent states239 × 6gwcode, gwc, country_name, start, end, microstate
polityPolity IV combined Polity scores17,228 × 3ccode, year, polity

andybega / states on github.com

Stars
14
Forks
0
Open issues
5
Last commit
25 Aug 2025
Activity
Commits
96
Open pull requests
0
Tagged releases
5
Latest tagged release
v0.3.3, 25 Aug 2025
Issues closed in
65 days (median)
Pull requests closed in
–
Pull requests merged
–
Created
9 Aug 2017
Licence file reads as
–
Development practices (9)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2025-08-25
The repository has a site deploy workflow
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentdata-raw/
CRAN release processcran-comments.md

Method, repository practices

Across andybega

R releases
  • On CRAN
  • Release
VersionReleasedR
0.3.3 current25 Aug 20254.5.1
0.3.25 Sep 20234.3.1
0.3.114 Apr 20214.0.5
0.3.011 Dec 20204.0.3
0.2.211 Jan 20193.5.2
0.2.14 May 20183.5.0
0.2.023 Feb 20183.4.3
Release notes (0.3.3)
  • Fixes an issue with testing plot_missing() with the future ggplot2 release (#28).