andybega / states

Create country-year/month/day panels consistent with the COW or Gleditsch & Ward independent states lists
https://andybeger.com/states/
Other
14 stars 0 forks source link

country_names does not work correctly for COW statelist #23

Closed andybega closed 4 years ago

andybega commented 4 years ago
library(states)
sfind(946)
#>     list ccode code3c country_name      start        end microstate
#> 474  COW   946    KIR     Kiribati 1999-09-14 9999-12-31         NA
country_names(946, list = "COW")
#> [1] NA

sfind(970)
#>     list ccode code3c country_name      start        end microstate
#> 232   GW   970    KBI     Kiribati 1979-07-12 9999-12-31       TRUE
#> 478  COW   970    NAU        Nauru 1999-09-14 9999-12-31         NA
country_names(970, list = "GW")
#> [1] "Kiribati"
country_names(970, list = "COW")
#> [1] "Kiribati"

Created on 2020-10-23 by the reprex package (v0.3.0)