terminated_postcode: Terminated postcode lookup

View source: R/terminated_postcode.R

terminated_postcodeR Documentation

Terminated postcode lookup

Description

Returns month and year if a postcode was terminated or is no longer active.

Usage

terminated_postcode(postcode)

Arguments

postcode

A string. Terminated UK postcode.

Value

A data frame with data about terminated postcode. NULL if postcode is active.

  • postcode Postcode. All currently terminated postcodes within the United Kingdom, the Channel Islands and the Isle of Man, received every 3 months from Royal Mail. 2, 3 or 4-character outward code, single space and 3-character inward code.

  • year_terminated Termination year. Year of termination of a postcode.

  • month_terminated Termination month. Month of termination of a postcode. 1-January, 2-February, ..., 12-December.

  • longitude Longitude. The WGS84 longitude given the Postcode's national grid reference.

  • latitude Latitude. The WGS84 latitude given the Postcode's national grid reference.

See https://postcodes.io/docs for more details.

Examples


terminated_postcode("EC1Y 8LX") # existing postcode
terminated_postcode("E1W 1UU") # terminated postcode



PostcodesioR documentation built on March 18, 2022, 8:04 p.m.