Learn R Programming

tab2xml (version 1.1.0)

validate_pk: 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)

Value

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

Arguments

table

A data frame that represents the table to validate.

name

A string indicating the name of the table.