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, dataframe, disease_name)

Arguments

icd_list

a list of the icd10 codes you wish to investigate

dataframe

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

disease_name

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

Examples

dx_age()

Lab-Jaiswal/tools4ukbb documentation built on May 12, 2022, 9:11 a.m.