Skip to contents

Get the Scottish Postcode Directory

Usage

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

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().

as_data_frame

Should the function return a tibble (default) or an Arrow Table?

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