tweetbotornot: tweetbotornot

Description Usage Arguments Value Examples

View source: R/tweetbotornot.R

Description

Classify users/accounts in Twitter data as bots or not bots.

Returns a numeric vector of probabilities

Usage

1
2
3
4
5
tweetbotornot(x, fast = FALSE)

botornot(x, fast = FALSE)

botornot_dbl(x, fast = TRUE)

Arguments

x

Object to be classified. Can be user IDs, screen names, or data frames returned by rtweet.

fast

Logical indicating whether to use the fast (lighter) model. The default (fast = FALSE) method uses the most recent 100 tweets posted by users to determine the probability of bot. The fast (fast = TRUE) method only uses users-level data, which is easier to get in large quantities from Twitter's APIS but overall less accurate.

Value

Classifications for all users expressed as probability of whether each account is a bot.

A named (screen names or user IDs depending on input) numeric vector of probabilities

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

## vector of screen names
sns <- c("kearneymw", "geoffjentry", "p_barbera",
  "tidyversetweets", "rstatsbot1234", "RStatsStExBot")

## get and view bot probability estimates
twb <- tweetbotornot(sns)
twb

## ask for the fast (user-level data only) version
twbf <- tweetbotornot(sns, fast = TRUE)
twbf


## End(Not run)

mkearney/botornot documentation built on Nov. 6, 2019, 3:14 p.m.