powered by
Test the inconsistencies between variables on a dataset
test_inconsistencies(data, variable1, variable2, relation)
A data frame containing all the findings regarding the applied test.
data to be tested.
The variable to be tested.
String such as 'greater_than', 'greater_than_or_equal' 'lower_than_or_equal' and 'lower_than'.
test_inconsistencies(als_data, 'baseline_date', 'death_date', relation = 'lower_than') test_inconsistencies(als_data, 'age_at_baseline', 'age_at_onset', relation = 'greater_than')
Run the code above in your browser using DataLab