Compare follower count
The follower count for a twitter account indicates the popularity of the personality or a business entity and is a measure of influence in social media.
Knowing the follower counts helps digital marketers strategically position ads on popular twitter accounts for increased visibility.
In this exercise, you will extract user data and compare followers count for twitter accounts of four popular news sites: CNN, Fox News, NBC News, and New York Times.
This exercise is part of the course
Analyzing Social Media Data in R
Exercise instructions
- Extract user data for twitter accounts of the 4 news sites.
- Create a data frame of screen names and follower counts for the sites.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Extract user data for the twitter accounts of 4 news sites
users <- ___("nytimes", "CNN", "FoxNews", "NBCNews")
# Create a data frame of screen names and follower counts
user_df <- users[,c("___","___")]
# Display and compare the follower counts for the 4 news sites
user_df