[R] Wordcloud warnings
Bryan Mac
bry@n@m@c24 @end|ng |rom gm@||@com
Sat May 23 02:37:21 CEST 2020
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
More information about the R-help
mailing list