dx_date: A tools4ukbb function

View source: R/dx_date.R

dx_dateR Documentation

A tools4ukbb function

Description

Function output: a column of name "Date_of_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_date(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_date()

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