Retweet counts
A retweet helps utilize existing content to build a following for your brand.
The number of times a twitter text is retweeted indicates what is trending. The inputs gathered can be leveraged by promoting your brand using the popular retweets.
In this exercise, you will identify tweets on "Artificial Intelligence" that have been retweeted the most.
Tweets on "Artificial Intelligence", extracted using search_tweets(), have been saved as tweets_ai.
The rtweet and dplyr libraries and the dataset tweets_ai have been pre-loaded.
Cet exercice fait partie du cours
Analyzing Social Media Data in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Create a data frame of tweet text and retweet count
rtwt <- tweets_ai[,c("___", "___")]
head(rtwt)
# Sort data frame based on descending order of retweet counts
rtwt_sort <- arrange(rtwt, desc(___))