select_levels | R Documentation |
Select a subset of the levels of the dimension so that the rest of the levels no longer belong to it.
select_levels(gd, level_names = NULL)
## S3 method for class 'geodimension'
select_levels(gd, level_names = NULL)
gd |
A |
level_names |
A vector of names. |
A geodimension
object.
geodimension
, geolevel
Other relationship between geolevels:
complete_relation_by_geography()
,
get_unrelated_instances()
,
relate_levels()
gd_us_2 <- gd_us |>
select_levels(level_names = c("state", "county", "place", "region"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.