Function to pull numeric code using region name
get_region_id(region_name, region_source = "EEZ", key = gfw_auth())
a tibble with label, EEZ code and EEZ name for matching EEZs
get_region_id(region_name = "COL", region_source = "EEZ")
#> # A tibble: 6 × 3
#> id label iso3
#> <dbl> <chr> <chr>
#> 1 48971 Overlapping claim: Venezuela / Colombia / Dominican Republic COL
#> 2 48984 Serranilla Bank COL
#> 3 8426 Colombia COL
#> 4 62598 Colombian Exclusive Economic Zone (Quitasueño) COL
#> 5 62596 Serrana Bank COL
#> 6 48985 Bajo Nuevo Bank COL
get_region_id(region_name = "Nazca", region_source = "MPA")
#> # A tibble: 5 × 3
#> label id NAME
#> <chr> <dbl> <chr>
#> 1 Mositi Vanuaso-Lamiti-Malawai/Lekanai/Nacavanadi/Naovuka/Vanuaso… 3.16e5 Mosi…
#> 2 Nazareti - Marine Managed Area 5.56e8 Naza…
#> 3 Aveiro/ Nazaré - Special Protection Area (Birds Directive) 5.56e8 Avei…
#> 4 Dorsal de Nasca - Reserva Nacional 5.56e8 Dors…
#> 5 Nazca-Desventuradas - Parque Nacional 5.56e8 Nazc…
get_region_id(region_name = "IOTC", region_source = "RFMO")
#> # A tibble: 2 × 3
#> label id RFB
#> <chr> <chr> <chr>
#> 1 SWIOFC SWIOFC SWIOFC
#> 2 IOTC IOTC NA