knitr::opts_chunk$set(echo = TRUE)

Overview

popsheff is an R package containing population data for Sheffield.

Installation

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.

Source & format

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.

Population data frames

library(popsheff)

LA (Local Authority) level

pop_la_yrs

head(pop_la_yrs)

pop_la_median_age

head(pop_la_median_age)

pop_la_age

head(pop_la_age)

pop_la_age_male

head(pop_la_age_male)

pop_la_age_female

head(pop_la_age_female)

pop_la_yrs_age_gender

head(pop_la_yrs_age_gender)

LAC (Local Area Committee) level

LAC boundaries are the same as ASC (Adult Social Care) localities.

lkup_ward_lac

Lookup for Wards and LACs (four Wards in each LAC).

head(lkup_ward_lac)

pop_lac_age

head(pop_lac_age)

pop_lac_age_male

head(pop_lac_age_male)

pop_lac_age_female

head(pop_lac_age_female)

pop_lac_yrs

head(pop_lac_yrs)

pop_lac_yrs_age_gender

head(pop_lac_yrs_age_gender)

Ward level

pop_ward_age

head(pop_ward_age)

pop_ward_age_male

head(pop_ward_age_male)

pop_ward_age_female

head(pop_ward_age_female)

pop_ward_yrs

head(pop_ward_yrs)

pop_ward_yrs_age_gender

head(pop_ward_yrs_age_gender)

Neighbourhood level

pop_nhood_age

head(pop_nhood_age)

pop_nhood_age_male

head(pop_nhood_age_male)

pop_nhood_age_female

head(pop_nhood_age_female)

pop_nhood_yrs_age

head(pop_nhood_yrs_age)

pop_nhood_yrs_age_gender

head(pop_nhood_yrs_age_gender)

LSOA level

pop_lsoa_age_band

head(pop_lsoa_age_band)


scc-pi/popsheff documentation built on Feb. 5, 2022, 11:41 p.m.