Learn R Programming

rtweet (version 0.7.0)

tweets_data: Extracts tweets data from users data object.

Description

Extracts tweets data from users data object.

Usage

tweets_data(users)

Value

Tweets data frame.

Arguments

users

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

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
if (FALSE) {
## 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))
}

Run the code above in your browser using DataLab