# NOT RUN {
# }
# NOT RUN {
## get most recent 3200 tweets posted by Donald Trump's account
djt <- get_timeline("realDonaldTrump", n = 3200)
## data frame where each observation (row) is a different tweet
djt
## users data for realDonaldTrump is also retrieved
users_data(djt)
## retrieve timelines of mulitple users
tmls <- get_timeline(c("KFC", "ConanOBrien", "NateSilver538"), n = 1000)
## it's returned as one data frame
tmls
## count observations for each timeline
table(tmls$screen_name)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab