powered by
Check if the specified set of attributes can be the key of the table.
check_key(table, key = NULL)
A boolean.
A tibble object.
tibble
A vector, attributes that compose the key.
The table can be a data table or a vector layer.
Other geolevel definition functions: add_geometry(), complete_point_geometry(), coordinates_to_geometry(), geolevel(), get_empty_geometry_instances(), get_geometry()
add_geometry()
complete_point_geometry()
coordinates_to_geometry()
geolevel()
get_empty_geometry_instances()
get_geometry()
layer_us_county <- get_level_layer(gd_us, "county") is_key <- check_key(layer_us_county, key = c("statefp", "name"))
Run the code above in your browser using DataLab