Summarises phenotype columns created by the derive_* family using
ukbflow's standard name prefix convention. The function records
whichever columns are present and marks missing components as not present.
Arguments
- audit
A
ukbflow_auditobject created byaudit_start.- data
A data.frame or data.table containing derived phenotype columns.
- name
(character) Phenotype prefix used by
derive_*, e.g."lung"forlung_status,lung_icd10, andlung_timing.
Examples
aud <- audit_start("example_analysis")
dt <- data.frame(
eid = 1:3,
lung_status = c(TRUE, FALSE, TRUE),
lung_date = as.Date(c("2020-01-01", NA, "2021-01-01"))
)
aud <- audit_pheno(aud, dt, "lung")
