The goal of ukbwranglr is to facilitate analysing UK Biobank data, including:
- Reading a selection of UK Biobank variables into R.
- Summarising repeated continuous variable measurements.1
- Extracting phenotypic outcomes of interest from clinical events data.2
You can install the development version of ukbwranglr with:
# install.packages("devtools")
devtools::install_github("rmgpanw/ukbwranglr")
The basic workflow is as follows:
- Create a data dictionary for your main UK Biobank dataset with
make_data_dict()
. - Read selected variables into R with
read_ukb()
. - Summarise continuous variables with
summarise_numerical_variables()
. - Tidy clinical events data with
tidy_clinical_events()
ormake_clinical_events_db()
, and extract outcomes of interest withextract_phenotypes()
. - Analyse.
Please see vignette('ukbwranglr')
for further details.