Learn R Programming

PostcodesioR (version 0.3.1)

postcode_validation: Postcode validation

Description

Convenience method to validate a postcode.

Usage

postcode_validation(postcode)

Arguments

postcode

A string. Valid UK postcode.

Value

A logical vector: True or False (meaning respectively valid or invalid postcode).

Examples

Run this code
# NOT RUN {
postcode_validation("EC1Y 8LX") # returns TRUE
postcode_validation("XYZ") # returns FALSE
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab