#' @export
tidy_postcode <- function(x) {
x %>%
stringr::str_to_upper() %>%
stringr::str_remove_all(" ") %>%
stringr::str_replace_all("(.*)(.{3})$", "\\1 \\2")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.