removeStopwords <- function(testo, stopwords=itastopwords){
testo <- strsplit(testo, "\\s")
testo <- lapply(testo, function(x) ifelse((x %in% stopwords | nchar(x)<=1),"", x) )
testo <- unlist(lapply(testo, function(x) paste(x, collapse=" ")))
# testo <- paste(" ",testo," ", sep="")
# testo <- gsub("\\s+", " ", testo, perl=FALSE)
# testo <- gsub("^[[:blank:]]","",testo)
# testo <- gsub("[[:blank:]]$","",testo)
testo
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.