format_postcode: Reformat a postcode to standards.

Description Usage Arguments Value Examples

Description

For GBR postcodes, if it is missing a white space between the outward (area + district) and inward (sector + unit) codes, then add it.

Usage

1
format_postcode(postcode, locale = "GBR")

Arguments

postcode

A character string or vector of strings.

locale

A string, the country code in format ISO 3. Default is "GBR".

Value

A character string.

Examples

1
format_postcode('eC2A0Rn')

xavier-gilbert/sabre documentation built on May 7, 2021, 12:40 p.m.