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()
.
Detailed patient level diagnoses, prescriptions, etc. Only available if these data have been requested for the particular project you have access to.
bio_gp(project_dir, record, gp_dir = "raw")
Path to the enclosing directory of a UKB project.
A string specifying which primary care records are required: "clinical", "registrations", "scripts".
Path to the enclosing directory of the primary care data.
A dataframe. Note. clinical data has 123,669,371 rows and 8 columns; registrations data has 361,841 rows and 4 columns; scripts data has 57,709,810 rows and 8 columns.