View source: R/gb-get-max-lvl.R
| gb_get_max_adm_lvl | R Documentation |
Returns a summary of selected country codes and their highest available ADM level in geoBoundaries.
gb_get_max_adm_lvl(
country = "all",
release_type = c("gbOpen", "gbHumanitarian", "gbAuthoritative")
)
country |
A character vector of country names or ISO 3166-1 alpha-3
country codes. Use |
release_type |
A character string, one of |
A tibble from tibble containing ISO 3166-1 alpha-3 country codes and their highest available ADM levels.
gb_get() downloads boundaries for the available ADM levels.
The ADM wrappers request a single administrative level.
Metadata and licensing functions:
gb_get_metadata()
all <- gb_get_max_adm_lvl()
library(dplyr)
# Countries whose highest available level is ADM1.
all |>
filter(maxBoundaryType == 1)
# Countries with ADM4 available.
all |>
filter(maxBoundaryType == 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.