Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

The IMD package provides easy access to the Indices of Multiple Deprivation for the UK’s nations at various geographical levels:


You can install the development version from GitHub with:

# install.packages("devtools")


The IMD package provides several datasets for the IMD in each UK nation:




Northern Ireland

Composite 2020 UK Index of Multiple Deprivation

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?


imd_wales_ward |> 
  dplyr::filter(Extent == 1) |> 
#> # A tibble: 1 x 1
#>       n
#>   <int>
#> 1    14

Getting help

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.