dx_demographics: A tools4ukbb function

View source: R/dx_demographics.R

dx_demographicsR Documentation

A tools4ukbb function

Description

Function output: a dataframe with data regarding sex and age demographics (count female, count male, count total, median and mean age) Each row is an icd (or self reported) code and one additional row is added displaying the demographics for all combined icd10, icd9, and self-reported codes called (respectively)

Usage

dx_demographics(icd_list, dataframe, ...)

Arguments

icd_list

a list of the icd10 codes you wish to investigate

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_demographics()

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