validate_pk {tab2xml} | R 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.
[Package tab2xml version 1.1.0 Index]