The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Working with Geography

Understanding Geography Types

Nomis uses TYPE codes to organize geographies hierarchically:

library(nomisdata)

# Get all geography types
types <- get_codes("NM_1_1", "geography", "TYPE")
head(types)

# Common types:
# TYPE499 - Countries (UK, England, Wales, Scotland, NI)
# TYPE464 - Local authorities
# TYPE480 - Regions
# TYPE460 - Parliamentary constituencies

Looking Up Geographies

# Search by name
manchester <- lookup_geography("Manchester")
print(manchester)

# With type filter
manchester_la <- lookup_geography("Manchester", type = "TYPE464")

Fetching Data for Specific Areas

# Single area
london_data <- fetch_nomis(
  "NM_1_1",
  time = "latest",
  geography = "2013265927",  # London code
  measures = 20100
)

# Multiple areas
cities <- c("1879048226", "1879048225")  # Manchester, Liverpool
cities_data <- fetch_nomis(
  "NM_1_1",
  time = "latest",
  geography = cities,
  measures = 20100
)

Geography Hierarchies

# Get all districts in a region
north_east <- get_codes(
  "NM_1_1",
  "geography",
  search = "*north east*"
)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.