check_birthdate_tbl: Validation of birthdate format using tbl_df pedigree

Description Usage Arguments Value

View source: R/pedigree_consistency_checks_tbl_df.R

Description

Birthdates in pedigree ptblPedigree are validated, assuming that they are in numeric format as YYYYMMDD. In case the birthdate is read as character, it first gets converted to a numeric value. For each part of the date (year, month and day), there are constant limits defined. Whenever a validation fails, the date is set to NA.

Usage

1
2
check_birthdate_tbl(ptblPedigree, lLimitValue = getBirthdayConsistencyLimit(),
  pnBirthdateColIdx = getBirthdateColIdxDsch())

Arguments

ptblPedigree

pedigree in tbl_df format

lLimitValue

list with fixed limits for year, month and date

pnBirthdateColIdx

column index of birthdates in ptblPedigree

Value

validated and modified tbl_df pedigree


pvrqualitasag/PedigreeFromTvdData documentation built on May 29, 2019, 7:50 a.m.