Learn R Programming

rtweet (version 1.2.1)

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

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

max_id(x)

Arguments

x

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

Examples

Run this code
if (auth_has_default()) {
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)
}

Run the code above in your browser using DataLab