File: entity.Rd

package info (click to toggle)
r-cran-rtweet 1.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,224 kB
  • sloc: sh: 13; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 887 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/entities.R
\name{entity}
\alias{entity}
\title{Extract methods}
\usage{
entity(x, entity, ...)
}
\arguments{
\item{x}{A tweets object of the rtweet package.}

\item{entity}{A entity to extract data from.}

\item{...}{Other possible arguments currently ignored.}
}
\value{
Some information about those entities and the tweet id it comes from.
for users mentions the ids of the mentioned users are "user_id", "user_id_str" (not id_str)
}
\description{
Extract entities of the tweets linked to a tweet id.
}
\details{
The position of where does this occur is not provided.
}
\examples{
if (auth_has_default()) {
  statuses <- c(
    "567053242429734913",
    "266031293945503744",
    "440322224407314432"
  )

  ## lookup tweets data for given statuses
  tw <- lookup_tweets(statuses)
  entity(tw, "urls")

}
}