tweets_data: Extracts tweets data from users data object.

Description Usage Arguments Value See Also Examples

View source: R/extractors.R

Description

Extracts tweets data from users data object.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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))

## End(Not run)

rtweet documentation built on Jan. 11, 2020, 9:11 a.m.