Learn R Programming

qualitycontrol (version 0.1.0)

test_inconsistencies: Test the inconsistencies between variables on a dataset

Description

Test the inconsistencies between variables on a dataset

Usage

test_inconsistencies(data, variable1, variable2, relation)

Value

A data frame containing all the findings regarding the applied test.

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'.

Examples

Run this code
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