Skip to contents

Get the Scottish Postcode Directory

Usage

get_spd(version = "latest", col_select = NULL)

Arguments

version

Default is "latest", otherwise supply a tag e.g. "2023_2"

col_select

A character vector of column names to keep, as in the "select" argument to data.table::fread(), or a tidy selection specification of columns, as used in dplyr::select().

Value

a tibble of the Scottish Postcode Directory

Examples

get_spd()
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/Geography/Scottish Postcode Directory': no such file or directory
get_spd(col_select = c("pc7", "latitude", "longitude"))
#> Error: [ENOENT] Failed to search directory '/conf/linkage/output/lookups/Unicode/Geography/Scottish Postcode Directory': no such file or directory