powered by
Extract a lookup table between two boundary scales from 'ONS Open Geography' portal, e.g. get a lookup between Regions and Parliamentary constituencies.
get_table_link_lookup( lookup_table, col_name_1, col_name_2, col_name_3, col_name_4 )
A tidy dataframe, providing a lookup between two chosen boundary resolutions.
A valid ONS lookup table
Field in ONS table containing the constituency code of the smaller scale resolution.
Field in ONS table containing the constituency code of the larger scale resolution.
Field in ONS table containing the constituency name of the smaller scale resolution.
Field in ONS table containing the constituency name of the larger scale resolution.
if (FALSE) { get_table_link_lookup(lookup_table="LAD22_CTY22_EN_LU",col_name_1="LAD22CD", col_name_2="CTY22CD",col_name_3="LAD22NM",col_name_4="CTY22NM") }
Run the code above in your browser using DataLab