imd_lookup: Gets English indices of deprivation ranks by postcode

Description Usage Arguments Details Value Examples

View source: R/imd_postcode_lookup.R

Description

This package takes a dataframe containing a column of postcodes (and other information) and uses it to look up IMD ranks for that area

Usage

1
imd_lookup(postcodes, pcdcolumn)

Arguments

postcodes

This is the dataframe containing all data

pcdcolumn

This is the index of the column that contains the postcode data (1 being the 1st column in the daataframe)

Details

Lookup IMD Using Postcode

Function for looking up a column of postcodes and returning information about the indices of deprivation about that area.

Uses the SPARQL endpoint at Open Data Communities - The Ministry of Housing, Communities and Local Government in the UK. Coverage - England only.

Value

returns a dataframe with the original data with extra columns containing deprivation ranks

Examples

1
new_dataframe <- imd_lookup(dataToBeMatched,3) [3 is the index of the column with the postcode in]

northernjamie/imdr documentation built on Feb. 19, 2018, 8:05 a.m.