check_key: Check Key

Description Usage Arguments Details Value

View source: R/check-key.R

Description

Checks that columns in a data frame represent a unique key.

Usage

1
check_key(data, key = NULL, data_name = substitute(data))

Arguments

data

The data frame to check.

key

A character vector of the column names representing the key.

data_name

A string of the name of data.

Details

By default (key = NULL) all the columns are checked.

Value

Throws an informative error or returns an invisible copy of the data.


poissonconsulting/deckr documentation built on March 18, 2021, 10:37 a.m.