dx_hx: A tools4ukbb function

View source: R/dx_hx.R

dx_hxR Documentation

A tools4ukbb function

Description

Function output: a column of name "Hx_of_disease_name", column of eid values "Hx_of_disease_name" contains 0's (indicating an absence of the diagnosis) or 1's (indicating the presence of a diagnosis)

Usage

dx_hx(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 (~500,000 cols x 18,000 rows as of 09/07/2021)

Examples

dx_hx()

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