do_call_rbind: Binds list of data frames while preserving attribute (tweets...

Description Usage Arguments Value See Also Examples

View source: R/do_call_rbind.R

Description

Row bind lists of tweets/users data whilst also preserving and binding users/tweets attribute data.

Usage

1

Arguments

x

List of parsed tweets data or users data, each of which presumably contains an attribute of the other (i.e., users data contains tweets attribute; tweets data contains users attribute).

Value

A single merged (by row) data frame (tbl) of tweets or users data that also contains as an attribute a merged (by row) data frame (tbl) of its counterpart, making it accessible via the users_data or tweets_data extractor functions.

See Also

Other parsing: tweets_with_users

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 

## lapply through three different search queries
lrt <- lapply(
  c("rstats OR tidyverse", "data science", "python"),
  search_tweets,
  n = 5000
)

## convert list object into single parsed data rame
rt <- do_call_rbind(lrt)

## preview tweets data
rt

## preview users data
users_data(rt)


## End(Not run)

nicolofcavalli/rtweet documentation built on Jan. 26, 2020, 1 a.m.