Add postcode variables e.g. Ward, to a data frame with postcodes
add_postcode_vars.RdAdd postcode variables e.g. Ward, to a data frame with postcodes
Usage
add_postcode_vars(
  df,
  pcd_name = "postcode",
  .admin_district = TRUE,
  .lat_long = FALSE,
  other_vars = character(0)
)Arguments
- df
- data frame with a postcode variable 
- pcd_name
- name of the postcode variable in passed the data frame 
- .admin_district
- boolean indicating whether to add an admin_district variable 
- .lat_long
- boolean indicating whether to add a pair of latitude & longitude variables 
- other_vars
- character vector of other variables to add