strClean <- function(x){
# Lower case:
x <- tolower(x)
# Remove spaces and punctuation:
x <- gsub(pattern="[ \\.-]",replacement="",x)
# Remove diacritics:
tmp <- iconv(x, to ="ASCII//TRANSLIT")
x <- gsub("[^[:alpha:],]", "", tmp)
return(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.