row_check {dbGaPCheckup} | R Documentation |
Row Check
Description
This function checks for empty or duplicate rows in the data set and data dictionary.
Usage
row_check(DD.dict, DS.data, verbose = TRUE)
Arguments
DD.dict |
Data dictionary. |
DS.data |
Data set. |
verbose |
When TRUE, the function prints the Message out, as well as the row numbers of any problematic rows. |
Value
Tibble, returned invisibly, containing: (1) Time (Time stamp); (2) Name (Name of the function); (3) Status (Passed/Failed); (4) Message (A copy of the message the function printed out); (5) Information (A list of problematic row and participant ID numbers).
Examples
# Example 1: Fail check
data(ExampleK)
row_check(DD.dict.K, DS.data.K)
print(row_check(DD.dict.K, DS.data.K, verbose=FALSE))
# Example 2: Pass check
data(ExampleC)
row_check(DD.dict.C, DS.data.C)
print(row_check(DD.dict.C, DS.data.C, verbose=FALSE))
[Package dbGaPCheckup version 1.1.0 Index]