View source: R/diagnoses_table.R
diagnoses_table | R Documentation |
A tidyUkBioBank function Function output: a table with an eid columns, columns pertaining to specific icd/ self reported/ cause of death codes, and a column for all previously mentioned disease indicators (combined) The columns with disease indicators contain 1's and 0's to represent whether the eid has the icd code, etc. of interest (1) or not (0)
diagnoses_table(icd_list, ukb_data, ...)
icd_list |
list of icd codes |
ukb_data |
the originial phenotype dataframe containing all individuals in the ukbiobank (~500,000 cols x 18,000 rows as of 09/07/2021) |
self_reported |
optional. if the user requests self reported diagnoses, then type self_reported = sr_list, where sr_list contains the self_reported codes of interest |
cause_of_death |
optional. if the user requests cause_of_death diagnoses, then type cause_of_death = cod_list, where cod_list contains the cause of death of interest |
diagnoses_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.