set_level_data | R Documentation |
Set the data table of a given level.
set_level_data(gd, level_name, data)
## S3 method for class 'geodimension'
set_level_data(gd, level_name = NULL, data = NULL)
gd |
A |
level_name |
A string. |
data |
A |
We can get the table, filter or transform the data and redefine the level table.
It is checked that the attributes that have been used in the relationships remain in the table.
A geodimension
object.
geolevel
, get_level_data
Other geodimension definition functions:
add_level()
,
geodimension()
,
transform_crs()
ld <- gd_us |>
get_level_data(level_name = "county",
inherited = TRUE)
gd_us <- gd_us |>
set_level_data(level_name = "county",
data = ld)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.