Skip to contents

This function takes clean UK postcode data and returns key geographic metadata. Details include: LSOA, MSOA, Latitude, Longitude, Rank of Deprivation Index (out of 32,844 in total) and Constituency.

Usage

postcodes_metadata(postcode_value)

Arguments

postcode_value

The postcode data to be cleaned (in the form of 'N1 1AA', 'ME1 2RE' or 'TN12 0QS'). To clean this data, you could pass it through the `postcodes` function in this package.

Examples

postcodes_metadata(
  postcode_value = "ME1 2RE"
  )
#> # A tibble: 1 × 20
#>   pcd   rgn   rgn_name pcon  pcon_name laua  laua_name lsoa21 lsoa21_name msoa21
#>   <chr> <chr> <chr>    <chr> <chr>     <chr> <chr>     <chr>  <chr>       <chr> 
#> 1 ME1 … E120… South E… E140… Chatham … E060… Medway    E0101… Medway 026C E0200…
#> # ℹ 10 more variables: msoa21_name <chr>, ward <chr>, ward_name <chr>,
#> #   oac11_code <chr>, oac11_group <chr>, oac11_subgroup <chr>,
#> #   oac11_supergroup <chr>, imd <int>, lat <dbl>, lon <dbl>