Hi, I am having trouble understanding why I am getting this warning and how to fix it. I don’t have any of these functions in my script..
This is the warning: warning messages: 1: in tm_map.simplecorpus(corpus, tm::removepunctuation) : transformation drops documents 2: in tm_map.simplecorpus(corpus, function(x) tm::removewords(x, tm::stopwords())) : transformation drops documents 3: in tm_map.simplecorpus(corpus, tm::removepunctuation) : transformation drops documents 4: in tm_map.simplecorpus(corpus, function(x) tm::removewords(x, tm::stopwords())) : transformation drops documents 5: in tm_map.simplecorpus(corpus, tm::removepunctuation) : transformation drops documents 6: in tm_map.simplecorpus(corpus, function(x) tm::removewords(x, tm::stopwords())) : transformation drops documents This is the script: if (runtype=="native") { words <- Corpus(VectorSource(test123b[,2])) wordcloud(words, min.freq = minfreq, max.words=300, random.order = FALSE ,colors=brewer.pal(9,"Reds")[0:-3]) } else { wordcloud((as.character(test123[,2])), min.freq = minfreq, max.words=300, random.order = FALSE ,colors=brewer.pal(9,"Reds")[0:-3]) } Best, Bryan ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.