[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().

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")

Arguments

project_dir

Path to the enclosing directory of a UKB project.

record

A string specifying which primary care records are required: "clinical", "registrations", "scripts".

gp_dir

Path to the enclosing directory of the primary care data.

Value

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.