This project defines an R Shiny application that visualises the published school level 2016 School Workforce SFR underlying data.
The application is under development.
The application allows you to do the following:
- Select an Individual School
- See where it sits on the national distribution for each measure in the SFR underlying data
- Subset the distribution to compare schools against schools with similar characteristics
- Compare measures for individual schools against one another
- Generate reports with multiple variables for sharing
To run the project on your machine you need to do the following:
- Clone the repo.
git clone https://github.com/dfe-analytical-services/schools-workforce-benchmarking.git
-
Ensure that you have Rtools installed. This is so that packrat can install dependencies correctly.
-
Open the project by double clicking the schools_working_benchmarking.Rproj file.
-
Wait for packrat to install the packages (this can take a while). Until you see the following do not stop the code:
Packrat bootstrap successfully completed. Restarting R and entering packrat mode...
- Open the UI.R or Server.R file and hit Run App.
Throughout the project code is modulated and all files are in relevant sub folders. Chunks of code are loaded using source("script_name.R")
. This allows code to be reused and split into manageable scripts.
This folder contains the data for the tool.
- Characteristics.csv - list of the school characteristics and corresponding phase type
- characteristics_match.csv - list of characteristics and the type of match for creating subset of similar schools
- deploy_sfr_2016.csv - raw data for the tool (includes workforce data and school characteristics)
Contains the packages and keeps the versions contained.
This folder contains all of the R scripts that make up the project.
- functions.R - contains functions to create subset of similar schools and generate charts
- load_datasets.R - loads the raw data into the app
- t1_Report.Rmd - creates downloadable report for similar schools charts
- t2_Report.Rmd - creates downloadable report for individual schools charts
Contains R scripts to test that the similar schools function and the app itself are running correctly and accurately
Contains DfE logo image, Google Analytics tracking code and script to add extra functionality to app.
The majority of the data is from the 2016 School Workforce Census.
The school characteristics data are from various external publications including:
- School Census
- Pupil Absence data
- Peformance Tables
- Ofsted