Learn R Programming

sgapi (version 1.1.2)

get_available_scales: Available Boundary Scales for 'nomis' Table

Description

Retrieve available spatial scales for a given 'nomis' table id. This is useful as each table only has data at a specific set of scales, e.g. many census tables are available at MSOA and LSOA resolutions but not at Regional level.

Usage

get_available_scales(id, base_url = "https://www.nomisweb.co.uk/api/v01")

Value

A tidy dataframe listing the geographical scales available for the 'nomis' table selected.

Arguments

id

A valid 'nomis' table id given as a string.

base_url

Nomis API base url

Examples

Run this code
get_available_scales(id="NM_1003_1")

Run the code above in your browser using DataLab