Learn R Programming

rtweet (version 0.6.9)

tweets_data: Extracts tweets data from users data object.

Description

Extracts tweets data from users data object.

Usage

tweets_data(users)

Arguments

users

Parsed data object of users data as returned via search_users, lookup_users, etc.

Value

Tweets data frame.

See Also

Other tweets: get_favorites, get_mentions, get_my_timeline, get_timeline, lists_statuses, lookup_statuses, search_tweets, tweets_with_users

Other extractors: next_cursor, users_data

Examples

Run this code
# NOT RUN {
## get twitter user data
jack <- lookup_users("jack")

## get data on most recent tweet from user(s)
tweets_data(jack)

## search for 100 tweets containing the letter r
r <- search_tweets("r")

## print tweets data (only first 10 rows are shown)
head(r, 10)

## preview users data
head(users_data(r))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab