A descriptive analysis of trends in daily GP activity.The code can be used to recreate the analysis described in our chart series
We are using publically available data published by NHS digital. The data used for this analysis is not included in this repository but can be downloaded from their website.
The code can be used to download the data and replicate the analysis.
These scripts were written in R version version 3.6.3 (2020-02-29) -- "Holding the windsock" and RStudio Version 1.2.5033. The following R packages (available on CRAN unless otherwise specified) are needed:
The 'R' folder contains:
- 0_download_data.R - download data.
- 1_clean_data.R - Load, clean and save cleaned data.
- 2_tests.R - Unit tests to check that downloaded data is in the expected format
- 3_coverage_plot.R - Create plot showing coverage.
- 4_appointment_plots.R - Create appointment plots by week showing average number of appointments per working day and absolute number of appointments.
- 5_appointment_avg_plots.R Create appointment plots by week showing average number of appointments normalised to 5 working days per week and absolute number of appointments.
- 6_monthly_plots.R - Create appointment plots by month showing average number of appointments normalised to 25 working days per month and absolute number of appointments.
- 7_regional_plots.R - Create appointment plots by month and region showing absolute number of appointments.
- Emma Vestesson - @gummifot - emmavestesson
This project is licensed under the MIT License.