Outputs a data frame allocating deprivation decile to area code based on the Indices of Multiple Deprivation (IMD) produced by Department of Communities and Local Government
deprivation_decile(AreaTypeID = 102, Year = 2015)Integer value, limited to either 102 (counties and unitary authorities), 101 (local authority districts and unitary authorities), 7 (General Practice) or 3 (Middle Super Output Layer); default is 102
Integer value, representing the year of IMD release to be applied, limited to either 2010 or 2015; default is 2015
A lookup table providing deprivation decile and area code
This function uses the fingertips_data function to filter for the Index of multiple deprivation score for the year and area supplied, and returns the area code, along with the score and the deprivation decile, which is calculated using the ntile function from dplyr
indicators for indicator lookups,
profiles for profile lookups,
indicator_metadata for the metadata for each indicator,
area_types for area types and their parent mappings,
category_types for category lookups,
indicator_areatypes for indicators by area types lookups,
indicators_unique for unique indicatorids and their names,
nearest_neighbours for a vector of nearest neighbours for an area and
indicator_order for the order indicators are presented on the
Fingertips website within a Domain
Other lookup functions: area_types,
category_types,
indicator_areatypes,
indicator_metadata,
indicator_order,
indicators_unique,
indicators,
nearest_neighbours, profiles
# NOT RUN {
# Return 2015 deciles for counties and unitary authorities
deprivation_decile(102, 2015)
# }
Run the code above in your browser using DataLab