ukb_info: A tools4ukbb function Function output: output of the dx_date,...

View source: R/ukb_info.R

ukb_infoR Documentation

A tools4ukbb function Function output: output of the dx_date, dx_age, and dx_hx functions (either subsetted or attached to the original phenotype dataframe)

Description

A tools4ukbb function Function output: output of the dx_date, dx_age, and dx_hx functions (either subsetted or attached to the original phenotype dataframe)

Usage

ukb_info(icd_list, dataframe, disease_name, combined, ...)

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)

disease_name

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

combined

this column indicates if you would like to recieve the requested column(s) joined with the whole phenotype dataframe (TRUE) or the subsetted, dx_positive, dataframe (FALSE)

requested

the columns requested. Strings containing "date" will call the dx_date function; "age", the dx_age function; and, "hx", the dx_hx function. Therefore, "datehx", "dataandhx" and "date_hx" will all call the dx_date and dx_age functions.

Examples

ukb_info()

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