max_id: Extract min/max id (for id based pagination)

Description Usage Arguments Examples

View source: R/next_cursor.R

Description

These internal helpers extract the ids passed on to the max_id and since_id arguments to functions that use TWIT_paginate_max_id().

Usage

1
max_id(x)

Arguments

x

Either a data frame of tweets or a character vector of status ids.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
tw <- search_tweets("#rstats")

# retrieve older tweets
older <- search_tweets("#rstats", max_id = tw)
even_older <- search_tweets("#rstats", max_id = older)

# retrieve newer tweets
newer <- search_tweets("#rstats", since_id = tw)

## End(Not run)

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