pretty_postcode: Turn a string into the 'prettty' format of postcode...

Description Usage Arguments Value Examples

View source: R/pretty_postcode.R

Description

Turn a string into the 'prettty' format of postcode 'XX(X)(X)YXXX' where Y is a specified seperator with a spacer as default in either upper or lower case

Usage

1
pretty_postcode(Postcode, sep = " ", uppercase = TRUE)

Arguments

Postcode

string

sep

string

uppercase

logical

Value

A string

Examples

1
2
3
4
pretty_postcode("SW1a2nP")
pretty_postcode("SW1a2nP", sep="")
pretty_postcode("SW1a2nP", sep=".")
pretty_postcode("SW1a2nP", sep=".", uppercase=FALSE)

SamA-DS/Rbduk documentation built on May 1, 2021, 5:29 a.m.