Learn R Programming

geodimension (version 1.0.0)

check_key: Check key

Description

Check if the specified set of attributes can be the key of the table.

Usage

check_key(table, key = NULL)

Value

A boolean.

Arguments

table

A tibble object.

key

A vector, attributes that compose the key.

Details

The table can be a data table or a vector layer.

See Also

Other level definition functions: add_geometry(), complete_point_geometry(), coordinates_to_geometry(), geolevel(), get_empty_geometry_instances(), get_geometry()

Examples

Run this code
library(sf)

is_key <- check_key(layer_us_region, key = c("name"))

Run the code above in your browser using DataLab