powered by
Get the names of levels included in the geodimension that are at a higher level than the indicated level. You can get only the direct levels or the levels reached by passing through other levels.
geodimension
get_higher_level_names(gd, level_name = NULL, indirect_levels = FALSE)# S3 method for geodimension get_higher_level_names(gd, level_name = NULL, indirect_levels = FALSE)
# S3 method for geodimension get_higher_level_names(gd, level_name = NULL, indirect_levels = FALSE)
A vector of names.
A geodimension object.
A string.
A boolean.
The indicated level may inherit properties of the obtained levels.
Other information output functions: get_level_data(), get_level_geometries(), get_level_layer(), get_level_names()
get_level_data()
get_level_geometries()
get_level_layer()
get_level_names()
library(tidyr) ln <- gd_us %>% get_higher_level_names(level_name = "state", indirect_levels = TRUE)
Run the code above in your browser using DataLab