Learn R Programming

nomisdata (version 0.1.1)

lookup_geography: Look up Geography Codes

Description

Search for UK geography codes by name. Returns matching geographies from local authorities, regions, wards, and other levels.

Usage

lookup_geography(search_term, dataset_id = "NM_1_1", type = NULL)

Value

Tibble of matching geographies with codes and names

Arguments

search_term

Name or partial name to search (e.g., "London", "Manchester")

dataset_id

Dataset to search in (default: "NM_1_1")

type

Optional geography TYPE code to filter results

Examples

Run this code
# \donttest{
lookup_geography("London")
lookup_geography("Manchester")
lookup_geography("Birmingham", type = "TYPE464")  # Local authorities only
# }

Run the code above in your browser using DataLab