test_inconsistencies {qualitycontrol} | R Documentation |
Test the inconsistencies between variables on a dataset
Description
Test the inconsistencies between variables on a dataset
Usage
test_inconsistencies(data, variable1, variable2, relation)
Arguments
data |
data to be tested. |
variable1 |
The variable to be tested. |
variable2 |
The variable to be tested. |
relation |
String such as 'greater_than', 'greater_than_or_equal' 'lower_than_or_equal' and 'lower_than'. |
Value
A data frame containing all the findings regarding the applied test.
Examples
test_inconsistencies(als_data, 'baseline_date', 'death_date', relation = 'lower_than')
test_inconsistencies(als_data, 'age_at_baseline', 'age_at_onset', relation = 'greater_than')
[Package qualitycontrol version 0.1.0 Index]