get_table_link_lookup {sgapi} | R Documentation |
Lookup Between Boundary Scales
Description
Extract a lookup table between two boundary scales from 'ONS Open Geography' portal, e.g. get a lookup between Regions and Parliamentary constituencies.
Usage
get_table_link_lookup(
lookup_table,
col_name_1,
col_name_2,
col_name_3,
col_name_4
)
Arguments
lookup_table |
A valid ONS lookup table |
col_name_1 |
Field in ONS table containing the constituency code of the smaller scale resolution. |
col_name_2 |
Field in ONS table containing the constituency code of the larger scale resolution. |
col_name_3 |
Field in ONS table containing the constituency name of the smaller scale resolution. |
col_name_4 |
Field in ONS table containing the constituency name of the larger scale resolution. |
Value
A tidy dataframe, providing a lookup between two chosen boundary resolutions.
Examples
## Not run:
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")
## End(Not run)
[Package sgapi version 1.0.2 Index]