Pustaka Taratsa
R: tidytext: sentiment wordcloud

R: tidytext: sentiment wordcloud

Penulis: Onno Widodo Purbo

# Ref: https://github.com/dgrtwo/tidy-text-mining/blob/master/02-sentiment-analysis.Rmd library(RColorBrewer) library(wordcloud) tidy_books %>% anti_join(stop_words) %>% count(word) %>% with(wordcloud(word, n, max.words = 100)) # In other functions, such as `comparison.cloud()`, you may need to turn the data frame # into a matrix with reshape2's `acast()`. Let's do the sentiment analysis # to tag