get_level_data | R Documentation |
Get the data table of a given level.
get_level_data(gd, level_name, inherited, add_prefix)
## S3 method for class 'geodimension'
get_level_data(gd, level_name = NULL, inherited = FALSE, add_prefix = TRUE)
gd |
A |
level_name |
A string. |
inherited |
A boolean. |
add_prefix |
A boolean. |
It allows selecting whether we want only the data defined locally in the level or also those that it inherits from other higher levels with which it is related.
In case of inheriting attributes from other levels, in the table, these can have as a prefix the name of the level.
A tibble
object.
geodimension
, geolevel
Other information gathering functions:
get_higher_level_names()
,
get_level_data_geo()
,
get_level_geometries()
,
get_level_layer()
,
get_level_names()
ld <- gd_us |>
get_level_data(level_name = "county",
inherited = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.