Wordcloud warnings
Hi Brian, i think we may need a bit more information. It looks like you are doing some text mining; can you tell us what libraries you have loaded and perhaps provide us with some sample data? And an example of what you are doing? See the links below for some suggestions http://adv-r.had.co.nz/Reproducibility.html http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
On Sat, 23 May 2020 at 02:53, Bryan Mac <bryan.mac24 at gmail.com> wrote:
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 at 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.
John Kane Kingston ON Canada [[alternative HTML version deleted]]