The function checks whether a field(column) in a data frame of PGR passport
database confirms to the primary key/ID constraints of absence of duplicates
and NULL values. If records with nonconforming values in the column are
encountered, they are returned in the output list for rectification.
If multiple fields(columns) are given as a character vector in
prim.key
field, only the first element will be considered as the
primary key/ID field(column).
Cleaning of the data in the input field(column) using the
DataClean
function with appropriate arguments is
suggested before running this function.
It is recommended to run this function and rectify aberrant records in a PGR
passport database before creating a KWIC index using the
KWIC
function.