knitr::opts_chunk$set(echo = TRUE)
popsheff is an R package containing population data for Sheffield.
You can install the development version from GitHub with:
# install.packages("devtools") devtools::install_github("scc-pi/popsheff")
If you work for Sheffield City Council you can install the binary package for Windows from:
S:\BI Team\ShareToAll\RPackages
Using RStudio you can does this via the Tools > Install packages... menu.
The data is from ONS. It has has been transformed into a tidy data format (or a tidier, longer format) so it is ready to use with tidyverse R packages.
library(popsheff)
head(pop_la_yrs)
head(pop_la_median_age)
head(pop_la_age)
head(pop_la_age_male)
head(pop_la_age_female)
head(pop_la_yrs_age_gender)
LAC boundaries are the same as ASC (Adult Social Care) localities.
Lookup for Wards and LACs (four Wards in each LAC).
head(lkup_ward_lac)
head(pop_lac_age)
head(pop_lac_age_male)
head(pop_lac_age_female)
head(pop_lac_yrs)
head(pop_lac_yrs_age_gender)
head(pop_ward_age)
head(pop_ward_age_male)
head(pop_ward_age_female)
head(pop_ward_yrs)
head(pop_ward_yrs_age_gender)
head(pop_nhood_age)
head(pop_nhood_age_male)
head(pop_nhood_age_female)
head(pop_nhood_yrs_age)
head(pop_nhood_yrs_age_gender)
head(pop_lsoa_age_band)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.