The IMD
package provides easy access to the Indices of Multiple
Deprivation for the UK’s nations at various geographical levels:
Install the released version of IMD
from
CRAN:
install.packages("IMD")
Alternatively, you can install the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("humaniverse/IMD")
The IMD
package provides several datasets for the IMD in each UK
nation:
IMD::imd_england_lsoa
IMD::imd_england_msoa
IMD::imd_england_ward
IMD::imd_england_lad
Sub-domains of deprivation are also available for England. These include two in the Education domain (‘children and young people’ and ‘adult skills’), two for the Barriers domain (‘geographical barriers’ and ‘wider barriers’), and two for the Living Environment domain (‘indoors’ and ‘outdoors’)
IMD::imd_england_lsoa_subdomains
IMD::imd_england_msoa_subdomains
IMD::imd_england_ward_subdomains
IMD::imd_england_lad_subdomains
Community Needs Index: IMD::cni_england_ward17
IMD::imd_wales_lsoa
IMD::imd_wales_msoa
IMD::imd_wales_ward
IMD::imd_wales_lad
Community Needs Index: IMD::cni_wales_msoa11
IMD::imd_scotland_dz
IMD::imd_scotland_iz
IMD::imd_scotland_lad
Community Needs Index: IMD::cni_scotland_iz11
IMD::imd_northern_ireland_soa
IMD::imd_northern_ireland_lad
Community Needs Index: IMD::cni_northern_ireland_soa11
We have also included the composite 2020 UK Index of Multiple Deprivation produced by mySociety, allowing comparison of deprivation across UK nations. For more information about how and when to use this version of the IMD, see their README.
Rather than providing a copy of this data, the IMD
package loads the
data hosted on mySociety’s GitHub. To load these files, run the
following code:
imd_uk <- load_composite_imd(nation = "E")
This function defaults to loading the England-focused composite index;
change the nation
parameter to the first letter of one of the devolved
UK nations to load the other versions.
How many wards in Wales are there with the 100% of the population living in areas classified as among the most deprived?
library(IMD)
imd_wales_ward |>
dplyr::filter(Extent == 1) |>
dplyr::count()
#> # A tibble: 1 x 1
#> n
#> <int>
#> 1 14
We’ve provided .csv
files for each geographical area in each nation:
Sub-domains of deprivation are also available for England. These include two in the Education domain (‘children and young people’ and ‘adult skills’), two for the Barriers domain (‘geographical barriers’ and ‘wider barriers’), and two for the Living Environment domain (‘indoors’ and ‘outdoors’)
Community Needs Index: community-needs-index-england.csv
Community Needs Index: community-needs-index-wales.csv
Community Needs Index: community-needs-index-scotland.csv
Community Needs Index: community-needs-index-northern-ireland.csv
If you encounter a clear bug, please file an issue with a minimal reproducible example on GitHub.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.