Learn R Programming

rtweet (version 0.7.0)

tweets_with_users: Parsing data into tweets/users data tibbles

Description

Parsing data into tweets/users data tibbles

Usage

tweets_with_users(x)

users_with_tweets(x)

Value

A tweets/users tibble (data frame) with users/tweets tibble attribute.

Arguments

x

Unparsed data returned by rtweet API request.

See Also

Other parsing: do_call_rbind()

Other tweets: get_favorites(), get_mentions(), get_my_timeline(), get_timeline(), lists_statuses(), lookup_statuses(), search_tweets(), tweets_data()

Other parsing: do_call_rbind()

Other users: as_screenname(), lists_subscribers(), lookup_users(), search_users(), users_data()

Examples

Run this code
if (FALSE) {
## search with parse = FALSE
rt <- search_tweets("rstats", n = 500, parse = FALSE)

## parse to tweets data tibble with users data attribute object
tweets_with_users(rt)

## search with parse = FALSE
usr <- search_users("rstats", n = 300, parse = FALSE)

## parse to users data tibble with users data attribute object
users_with_tweets(usr)

}

Run the code above in your browser using DataLab