Learn R Programming

PostcodesioR (version 0.3.1)

random_postcode: Random postcode

Description

Returns a random postcode and all available data for that postcode.

Usage

random_postcode(outcode = NULL)

Arguments

outcode

A string. Filters random postcodes by outcode. Returns null if invalid outcode. Optional.

Value

A list with a random postcode with corresponding characteristics.

See Also

postcode_lookup for documentation.

Examples

Run this code
# NOT RUN {
random_postcode()
random_postcode("N1")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab