Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add micro states coding for COW state list #24

Closed
andybega opened this issue Oct 23, 2020 · 1 comment
Closed

Add micro states coding for COW state list #24

andybega opened this issue Oct 23, 2020 · 1 comment

Comments

@andybega
Copy link
Owner

Currently the "microstate" TRUE/FALSE that the GW states list has is not present in the COW list, since the original COW state list does not code this. Adapt the GW coding for the COW state list so these are not missing anymore.

library(states)
data(gwstates)
head(gwstates)
#>   gwcode gwc             country_name      start        end microstate
#> 1      2 USA United States of America 1816-01-01 9999-12-31      FALSE
#> 2     20 CAN                   Canada 1867-07-01 9999-12-31      FALSE
#> 3     31 BHM                  Bahamas 1973-07-10 9999-12-31      FALSE
#> 4     40 CUB                     Cuba 1902-05-20 9999-12-31      FALSE
#> 5     41 HAI                    Haiti 1816-01-01 1915-07-04      FALSE
#> 6     41 HAI                    Haiti 1934-08-15 9999-12-31      FALSE
data(cowstates)
head(cowstates)     
#>   cowcode cowc             country_name      start        end
#> 1       2  USA United States of America 1816-01-01 9999-12-31
#> 2      20  CAN                   Canada 1920-01-10 9999-12-31
#> 3      31  BHM                  Bahamas 1973-07-10 9999-12-31
#> 4      40  CUB                     Cuba 1902-05-20 1906-09-25
#> 5      40  CUB                     Cuba 1909-01-23 9999-12-31
#> 6      41  HAI                    Haiti 1859-01-01 1915-07-28

# shows up as missing when using sfind()
sfind(20)
#>     list ccode code3c country_name      start        end microstate
#> 2     GW    20    CAN       Canada 1867-07-01 9999-12-31      FALSE
#> 241  COW    20    CAN       Canada 1920-01-10 9999-12-31         NA

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

@andybega
Copy link
Owner Author

Wups, duplicate of #21

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant