is_postcode: Function to check if a string is a valid postcode regardless...

Description Usage Arguments Value Examples

View source: R/is_postcode.R

Description

Function to check if a string is a valid postcode regardless of it's formatting. With or without a space is permitted.

Usage

1
is_postcode(Postcode)

Arguments

Postcode

string

Value

Logical

Examples

1
2
is_postcode("SW1a2nP")
is_postcode("SW1a 2nP")

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