ids: Extract the ids

View source: R/ids.R

idsR Documentation

Extract the ids

Description

Extract the ids of the rtweet data if present. Depending on the object type it returns either users ids, tweet ids or rules ids.

Usage

ids(x, ...)

Arguments

x

An object of the rtweet package.

...

Other arguments currently unused.

Examples

if (auth_has_default()) {
  users <- lookup_users(c("twitter", "rladiesglobal", "_R_Foundation"))
  ids(users)
  followers <- get_followers("_R_Foundation")
  head(ids(followers))
  friends <- get_friends("_R_Foundation")
  head(ids(friends))
}

rtweet documentation built on Oct. 17, 2023, 1:11 a.m.