Using R to generate frequency-based word clouds for happy and sad tweets.
I wanted to analyze tweets containing the word "happy" and "sad" and see the words commonly associated with these feelings.
Ensure you have rtweet and wordcloud installed. If you don't, run the following:
Create a Twitter app, and fill in the "app", "consumer_key", and "consumer_secret" in the create_token function. Then, you can run it.