links: Create the links

View source: R/links.R

linksR Documentation

Create the links

Description

create the links from the rtweet data present. Depending on the object type it returns either users links, tweet links or rules links.

Usage

links(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"))
  links(users)
  followers <- get_followers("_R_Foundation")
  head(links(followers))
  friends <- get_friends("_R_Foundation")
  head(links(friends))
}

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