tidy_gp_clinical | R Documentation |
Reformats the UK Biobank primary care clinical events dataset to match the
output format for tidy_clinical_events
.
tidy_gp_clinical(gp_clinical, .details_only = FALSE)
gp_clinical |
The UK Biobank primary care clinical events dataset |
.details_only |
logical. If |
The UK Biobank primary care clinical events data lists read codes in separate
columns, one for Read2 and one for Read3. This function reshapes the data to
long format so that all codes are in a single column. The index
column
values relate to row numbers in the original data.
The primary care data also contains 3 'value' columns. The clinical codes/dates in long format and 'value' columns are both returned in a list under the names 'clinical_events' and 'gp_clinical_values' respectively.
A named list. Item 'clinical_events' contains the read codes with event dates, and item 'gp_clinical_values' contains the 'value' columns.
By default, special date values (see
resource 591 for
further details) are set to NA
.
tidy_clinical_events
,
make_clinical_events_db
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.