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.
Other configuration functions: transform_crs()
transform_crs()
library(tidyr) gds <- gd_us %>% select_levels(level_names = c("division", "region", "nation"))
Run the code above in your browser using DataLab