powered by
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 geodimension select_levels(gd, level_names = NULL)
# S3 method for geodimension select_levels(gd, level_names = NULL)
A geodimension object.
geodimension
A vector of names.
geodimension, geolevel
geolevel
Other relationship between geolevels: complete_relation_by_geography(), get_unrelated_instances(), relate_levels()
complete_relation_by_geography()
get_unrelated_instances()
relate_levels()
gd_us_2 <- gd_us |> select_levels(level_names = c("state", "county", "place", "region"))
Run the code above in your browser using DataLab