Nothing
DTMFromCorpus <-
function(corpus, rowNames) {
dtm <- tm::DocumentTermMatrix(corpus, control = list(weighting = tm::weightBin, removePunctuation = FALSE))
dtm <- as.matrix(dtm)
if(missing(rowNames)) {
row.names(dtm) <- paste0("A", 1:nrow(dtm))
} else {
row.names(dtm) <- rowNames
}
dtm <- dtm[which(rowSums(dtm) != 0), ]
return(dtm)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.