Twitter API endpoints that return tweets also return data about the users who
tweeted, and most endpoints that return users also return their last tweet.
Showing these additional columns would clutter the default display, so
rtweet instead stores in special attributes and allows you to show them
with the user_data()
and tweets_data()
helpers.
Examples
if (auth_has_default()) {
# find users from tweets
tweets <- search_tweets("r")
users_data(tweets)
full_search <- cbind(tweets, users_data(tweets))
# from tweets from users
users <- search_users("r")
tweets_data(users)
full_users <- cbind(users, tweets_data(users))
}