cds <- c("A1B 2C3", "missing",
"--- A 5G*****HHH5J4",
"E9J6H2nnnn", "e6n8l0")
cleanPostalCodes(cds)
[1] "A1B 2C3" NA "A5G 5J4" "E9J 6H2" "E6N 8L0"
NA
.Ben for help with regular expressions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.