age_check: Checks that pre-enrollment ages match calculated ages.

Description Usage Arguments Details Value

View source: R/age_check.r

Description

This function checks that the ages given on pre-enrollments match those calculated from reported dates of birth (Section A) and the particpant's visit date (Section A).

Usage

1
age_check(cleanlist)

Arguments

cleanlist

The list of cleaned TO1 data generated by clean_to1

Details

Ages are given in years; calculated ages are rounded down.

Value

age_check returns a data.frame of participants with incongruent ages with study ID, birth date, visit date, pre-enrollment age, calculated age, and the difference between the two ages in years. The data.frame is ordered by decreasing size of the discrepancy.


mmparker/to1check documentation built on May 23, 2019, 5:05 a.m.