Welcome to ClientVPS Mirrors

NHSRdatasets

NHSRdatasets

NHSRdatasets is a package developed originally by NHS-R Community for use in its free R training and for example code in blogs or other material. It doesn’t contain any sensitive information and, for some datasets, it follows the layout and structure of the data; for others it provides access to freely available data from elsewhere. In these circumstances the data may have been transformed (changed).

These datasets are static and are not updated. As well as being available through R as a function the data is also available in the R data format .rda which are available from the data folder on GitHub.

Viewing the data in the console

Once a dataset is selected the first 10 rows will appear in the console:

NHSRdatasets::ae_attendances

or load the package first

library(NHSRdatasets)

ae_attendances

To create an object so making the data available as a data frame:

data <- ae_attendances

Datasets

This package currently provides static datasets for:

Each data set has documentation for the function which can be called by either putting the cursor in the name and selecting F1 or by running the R code:

?ae_attendances()

It’s also possible to write this without the brackets:

?ae_attendances

If the package hasn’t been loaded it’s still possible to find the help files by using two question marks to look globally

??ae_attendances

To see the all the datasets in the package this base R code will open a new window in RStudio with the name of the dataset and the short description

data(package = "NHSRdatasets")

Examples of use

A search for the code library(NHSRdatasets) on the NHS-R Community GitHub returns a number of examples, the search criteria being:

org:nhs-r-community library(NHSRdatasets)

Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.

This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.