Learn R Programming

rtweet (version 0.6.9)

users_data: Extracts users data from tweets data object.

Description

Extracts users data from tweets data object.

Usage

users_data(tweets)

Arguments

tweets

Parsed data object of tweets data as returned via get_timeline, search_tweets, stream_tweets, etc..

Value

Users data frame from tweets returned in a tweets data object.

See Also

Other users: as_screenname, lists_subscribers, lookup_users, search_users, tweets_with_users

Other extractors: next_cursor, tweets_data

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## search for 100 tweets containing the letter r
r <- search_tweets("r")

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

## extract users data
head(users_data(r))

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab