Learn R Programming

rtweet (version 0.7.0)

users_data: Extracts users data from tweets data object.

Description

Extracts users data from tweets data object.

Usage

users_data(tweets)

Value

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

Arguments

tweets

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

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

if (FALSE) {

## 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))

}

Run the code above in your browser using DataLab