tweet_threading: Collect statuses contained in a thread

Description Usage Arguments Value Examples

View source: R/tweet_threading.R

Description

Return all statuses that are part of a thread. By default the function traverses first backwards from the origin status_id of the thread up to the root, then checks if there are any child statuses that were posted after the origin status.

Usage

1
2
3
4
5
6
tweet_threading(
  tw,
  traverse = c("backwards", "forwards"),
  n = 10,
  verbose = FALSE
)

Arguments

tw

lookup_tweets() output containing at least the last status in the thread

traverse

character, direction to traverse from origin status in tw, Default: c('backwards','forwards')

n

numeric, timeline to fetch to start forwards traversing, Default: 10

verbose

logical, Output to console status of traverse, Default: FALSE

Value

lookup_tweets() tibble

Examples

1
2
3
4
5
6
## Not run: 
tw <- lookup_tweets("1084143184664510470")
tw_thread <- tweet_threading(tw)
tw_thread

## End(Not run)

mkearney/rtweet documentation built on Sept. 29, 2021, 12:01 p.m.