Reads record-level data from on-disk disk.frames

bio_record(project_dir, record = NULL, subset = NULL)

Arguments

project_dir

Path to the enclosing directory of a UKB project.

record

A string specifying which record-level data are required: COVID-19 data ("covid19_emis_gp_clinical", "covid19_result", "covid19_emis_gp_scripts", "covid19_tpp_gp_clinical", "covid19_misc", "covid19_tpp_gp_scripts"), primary care data ("gp_clinical", "gp_scripts", "gp_registrations"), hospital episode statistics data ("hesin", "hesin_critical", "hesin_delivery", "hesin_diag", "hesin_maternity", "hesin_oper", "hesin_psych"), death data ("death", "death_cause")

subset

An integer vector of samples to collect record-level data for.

Value

If record is NULL, bio_record returns a character vector of available record-level data; if a specific record is requested and subset is NULL, a disk.frame of the specified record; and if record and subset are provided as arguments, a dataframe.