Function that validates postcodes and links to IMD datasets, returning the score and generated deciles and quintiles.
Source:R/imd.R
get_imd.Rd
Function that validates postcodes and links to IMD datasets, returning the score and generated deciles and quintiles.
Arguments
- x
A data frame with a column of postcodes, or a vector of postcodes.
- var
String or symbol. The name of the variable in the data frame that comprises the postcodes to be submitted. Should be acceptable as a symbol or as a standard string.
- fix_invalid
Boolean, default
TRUE
. Whether to try to fix any postcodes that are not found (potentially because they are terminated codes, or contain typos).