Check Datasets for Missing Values and Invalid Codes
checkData.Rd
Check data frames for missing or duplicated entries in the ID variable, persons and/or variables without valid codes, and invalid codes. Invalid codes are codes which are not specified in table values
.
Arguments
- dat
A data frame to be checked.
- datnam
Name of the data frame. Especially useful if more than one data frame is checked (e.g., in a list of data frames).
- values
A data frame with code information. See ‘Details’.
- subunits
A data frame with subunit information. See ‘Details’.
- units
A data frame with unit information. See ‘Details’.
- ID
A string for ID column name.
- verbose
Logical. If
FALSE
no information is printed.