TASK
Use the search_tweets function from the rtweet library to search for 1000 tweets about the person you selected. Save these tweets as “tweets”.
Construct a document-term matrix or term-document matrix using TFIDF weighting.
Construct a word cloud of the words in your document term matrix. Make sure you removed all the words non-informative by updating your stop list.
Sum the frequencies of each terms in all documents to obtain a vector of term frequencies summed over all tweets.
Compute the proportion of each term in the tweets from the vector of term frequencies. Visualize the top 20 words and their proportion by using a bar
plot.
Create a dendrogram of the words in your document term matrix. You do not need to visualize all words in your dendrogram, set up appropriate
boundaries to improve the visualization.
Get It Done! Today
Every Assignment. Every Solution. Instantly.
Deadline Ahead? Grab Your Sample Now.