validate_pk: Validate primary key column

View source: R/keys.R

validate_pkR Documentation

Validate primary key column

Description

Checks if a table contains a correctly formatted primary key column. Primary key column must exist, no missing values and contain unique values.

Usage

validate_pk(table, name)

Arguments

table

A data frame that represents the table to validate.

name

A string indicating the name of the table.

Value

'TRUE'. Generates warnings if primary key column is missing or has duplicates.


tab2xml documentation built on April 4, 2025, 12:36 a.m.