lookup_islands_postcodes: Lookup coordinates for UK postcodes that aren't in the ONS...

Description Usage Arguments Value

View source: R/postcodes.R

Description

Lookup coordinates for UK postcodes that aren't in the ONS postcode directory (tends to be Guernsey, Jersey and Isle of Man), scraping them from https://checkmypostcode.uk/ where necessary. This function also saves the postcodes and coordinates into 'islands_file' to prevent needless re-scraping in future.

Usage

1
2
3
4
5
lookup_islands_postcodes(
  islands_postcodes,
  islands_path = file.path(options("brclib.data_path"), "Postcodes"),
  islands_file = "UK Islands postcodes.csv"
)

Arguments

islands_postcodes

A vector of postcodes to lookup. Note that these shouldn't contain spaces.

islands_path

Folder where the 'islands_file' is stored

islands_file

Filename for where to store the postcodes and coordinates.

Value

A data_frame containing postcodes and coordinates.


matthewgthomas/brclib documentation built on Feb. 21, 2020, 6:18 p.m.