Skip to contents

Extract all the memberships of a state on a specific date.

Usage

igo_search_states(state)

Arguments

state

Any valid name or code of a state as specified on states2016(). It could be also an array of states.

Value

A data.frame.

See also

Examples

library(dplyr)

igo_search_states("Spain") %>% as_tibble()
#> # A tibble: 1 × 4
#>   ccode stateabb statenme state
#>   <int> <chr>    <chr>    <chr>
#> 1   230 SPN      Spain    spain

igo_search_states(c(20, 150)) %>% as_tibble()
#> # A tibble: 2 × 4
#>   ccode stateabb statenme state   
#>   <int> <chr>    <chr>    <chr>   
#> 1    20 CAN      Canada   canada  
#> 2   150 PAR      Paraguay paraguay

igo_search_states("congo") %>% as_tibble()
#> # A tibble: 1 × 4
#>   ccode stateabb statenme state     
#>   <int> <chr>    <chr>    <chr>     
#> 1   484 CON      Congo    congobrazz

igo_search_states(c("Germany", "papal states")) %>% as_tibble()
#> # A tibble: 2 × 4
#>   ccode stateabb statenme     state      
#>   <int> <chr>    <chr>        <chr>      
#> 1   255 GMY      Germany      germany    
#> 2   327 PAP      Papal States papalstates

igo_search_states(c("FRN", "United Kingdom", 240, "italy")) %>% as_tibble()
#> # A tibble: 4 × 4
#>   ccode stateabb statenme       state  
#>   <int> <chr>    <chr>          <chr>  
#> 1   220 FRN      France         france 
#> 2   200 UKG      United Kingdom uk     
#> 3   240 HAN      Hanover        hanover
#> 4   325 ITA      Italy          italy