dx_age: A tools4ukbb function

View source: R/dx_age.R

dx_ageR Documentation

A tools4ukbb function

Description

Function output: a column of name "Age_at_first_disease_namediagnosis", column of eid values "Date_of_firstdisease_name_diagnosis" contains the date an individual received the diagnosis (as indicated by the icd_code(s) of interest)

Usage

dx_age(icd_list, disease_name, dataframe)

Arguments

icd_list

a list of the icd10 codes you wish to investigate

disease_name

a string containing the name of the disease(s) of interest

dataframe

the originial phenotype dataframe containing all individuals in the ukbiobank (502462 x 18158 as of 09/07/2021)

Examples

dx_age()

Lab-Jaiswal/tidyUkBioBank documentation built on Sept. 10, 2023, 5:13 p.m.