Skip to contents

This function takes main UK Biobank tab data and gives the required number of chronologically ordered cancer diagnosis dates.

Usage

ukbbcanR_chronology(input = "", n = 1, min_date = "", max_date = "")

Arguments

input

Path to the UK Biobank data file

n

Number of cancer diagnoses to consider (default 1, first primary)

min_date

The lower limit of cancer diagnosis (default: "")

max_date

The upper limit of cancer diagnosis (default: "")

Value

A data.frame indicating the chronological order of cancer diagnoses

References

M.Guler “xxxm” doi:10.1182/XXXX-2010-06-289561

Examples

ukbbcanR_chronology(input="path/ukbXXXX.tab", n=1, min_date=1990, max_date=2022)
#> Error in data.table::fread(input, select = c("f.eid", paste0("f.40005.",     0:21, ".0"))): File 'path/ukbXXXX.tab' does not exist or is non-readable. getwd()=='/omics/groups/OE0136/internal/private/Murat/R_project/UKBBCanR/docs/reference'