Skip to contents

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

Usage

check_key(table, key = NULL)

Arguments

table

A tibble object.

key

A vector, attributes that compose the key.

Value

A boolean.

Details

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

Examples


layer_us_county <- get_level_layer(gd_us, "county")

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