[R] Weighting Document for Text Clouds
Elmously, Ziad (TSHHM)
zi@d@elmou@ly @ending from k@nt@r@com
Tue Dec 4 12:18:56 CET 2018
Hello All,
The link below shows the 5 steps required to build a text cloud from a text file of documents (e.g., posts, tweets, etc.).
http://www.sthda.com/english/wiki/text-mining-and-word-cloud-fundamentals-in-r-5-simple-steps-you-should-know
The R script in the link loads the text into a character vector, "text". Basically, it is a vector of documents.
Is there an easy way to apply document weights (if attached to the raw documents)? The weighting options in the documentation for "TermDocumentMatrix" do not seem to be relevant. One option is to use the weights to physically replicate the documents in "text".
However, I seek a more elegant solution.
Sincerely,
Ziad Elmously
Kantar Disclaimer<http://www.kantar.com/disclaimer.html>
[[alternative HTML version deleted]]
More information about the R-help
mailing list