[Deprecated]

This function has been deprecated in favour of a single function to read all record-level data. Use bio_record() to retrieve data. Summarize/ inspect record-level data with bio_record_map().

bio_death(project_dir, record = "death", death_dir = "raw/")

Arguments

project_dir

Path to the enclosing directory of a UKB project.

record

A string specifying which death data are required: "death" (default) includes date of death, "cause" includes ICD-10 cause of death.

death_dir

Path to the enclosing directory of the death data.

Value

A dataframe of including either the date of death, or cause of death.