View source: R/extract_postcode.R
extract_postcode | R Documentation |
Extract the postcode from the suffix of a string
extract_postcode(x)
x |
A character vector. |
An integer vector the same length as x
, giving the
postcode as it appears in the last 3 or 4 characters in each
string. Returns NA_integer_
for other strings.
There is no guarantee made that the postcode is a real postcode.
extract_postcode("3000")
extract_postcode("Melbourne Vic 3000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.