Package: NHSRdatasets 1.0.0

Zoë Turner

NHSRdatasets: NHS and Healthcare-Related Data for Education and Training

Free United Kingdom National Health Service (NHS) and other healthcare, or population health-related data for education and training purposes. This package contains synthetic data based on real healthcare datasets, or cuts of open-licenced official data. This package exists to support skills development in the NHS-R community: <https://nhsrcommunity.com/>.

Authors:Zoë Turner [aut, cre], Chris Mainey [aut], Tom Jemmett [aut], Fran Barton [aut], Gary Hutson [aut], NHS-R community [cph]

NHSRdatasets_1.0.0.tar.gz
NHSRdatasets_1.0.0.zip(r-4.7-any)NHSRdatasets_1.0.0.zip(r-4.6-any)NHSRdatasets_1.0.0.zip(r-4.5-any)
NHSRdatasets_1.0.0.tgz(r-4.6-any)NHSRdatasets_1.0.0.tgz(r-4.5-any)
NHSRdatasets_1.0.0.tar.gz(r-4.7-any)NHSRdatasets_1.0.0.tar.gz(r-4.6-any)
NHSRdatasets_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
NHSRdatasets/json (API)

# Install 'NHSRdatasets' in R:
install.packages('NHSRdatasets', repos = c('https://nhs-r-community.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nhs-r-community/nhsrdatasets/issues

Pkgdown/docs site:https://nhs-r-community.github.io

Datasets:
  • ae_attendances - NHS England Accident & Emergency Attendances and Admissions
  • apha_cpd_survey - AphA (Association of Professional Healthcare Analysts) CPD Survey Responses
  • covid19 - International COVID-19 reported infection and death data
  • LOS_model - Hospital Length of Stay (LOS) Data
  • ons_mortality - Deaths registered weekly in England and Wales, provisional
  • ons_uk_population_2023 - ONS Mid-2023 Population Estimate for UK
  • stranded_data - Stranded Patient (Patients flagged as having a greater than 7 day Length of Stay) Model
  • synthetic_news_data - Synthetic National Early Warning Scores Data

On CRAN:

Conda:

datasethacktoberfest

8.94 score 73 stars 203 scripts 624 downloads 0 exports 0 dependencies

Last updated from:7f5a4a3370 (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK144
source / vignettesOK212
linux-releaseOK119
macos-releaseOK107
macos-oldrelOK106
windows-develOK82
windows-releaseOK92
windows-oldrelOK81
wasm-releaseOK102

Exports:

Dependencies:

Contributing to the package
Consider teachability using R | Limitations | Sensitive data | Licences | Data type and code style | Vignettes | Package dependencies | Updating the package

Last update: 2026-09-08
Started: 2026-09-07

Create dataset: apha_cpd_survey
This code is the original written to get and transform the data and is not updated.

Last update: 2026-09-08
Started: 2026-09-07

Dataset: AphA CPD Survey
Association of Healthcare Analysts Continuous Professional Development survey data | Labels | Categories for columns | Cleaning the data

Last update: 2026-09-08
Started: 2026-09-07

Create dataset: ons-mortality
This code is the original written to get and transform the data and is not updated. | Format data functions | 2010 - 2015 | Format data 2016 - 2019

Last update: 2026-09-07
Started: 2026-09-07

Dataset: ONS Weekly Provisional Registered Deaths in England and Wales
Deaths registered weekly in England and Wales, provisional | Exploring the data | Small charts exploration

Last update: 2026-09-07
Started: 2020-04-28

Dataset: Synthetic NEWS Data
What is NEWS? | Criticisms of NEWS | Here are some code chunks for the calculation of NEWS sub scores: | Systolic Blood pressure (column syst) | Heart Rate (column pulse) | Resp Rate (column resp) | SpO2 Oxygen Saturation (column sat) | Temperature (column temp) | Summary

Last update: 2026-09-07
Started: 2021-03-09

Create dataset: ons_uk_population_2023
This code is the original written to get and transform the data and is not updated.

Last update: 2026-09-07
Started: 2026-09-07

Dataset: A simulated hospital length-of-stay (LOS)
First, load the data and inspect it | Modelling LOS and Death | Generalized Linear Models | Modelling death: | Interactions | Prediction | Length of Stay (LOS) | Overdispersion | Summary | References

Last update: 2026-09-07
Started: 2019-07-27

Dataset: Accident and Emergency attendances
First, load the data and inspect it | What are the best and worst trusts for performance? | Benchmarking

Last update: 2026-09-07
Started: 2019-09-26

Dataset: Covid19
Covid19 data | Using the data | Other places to see this data used

Last update: 2026-09-07
Started: 2026-09-07

Dataset: ONS UK population 2023
ONS UK Population 2023 | Small charts exploration

Last update: 2026-09-07
Started: 2026-09-07

Dataset: Stranded Model Tutorial
First, load the data and inspect it | Feature engineering | Splitting the data | Create simple Logistic Regression Model to classify stranded patients | Predicting the test set to validate model | Evaluating with confusion matrix | Conclusion

Last update: 2026-09-07
Started: 2021-03-08

NHSRdatasets
Viewing the data in the console | Datasets | Examples of use

Last update: 2026-09-07
Started: 2024-09-29