muteTweeters: Mute Twitter Users with Excessive Hashtag Use

Description Usage Arguments Details Value Author(s) Examples

View source: R/muteTweets.R

Description

Mutes Twitter accounts using for than 'ncrit' hashtags among 'N' tweets in search of along with of 'term'.

Usage

1
muteTweeters(term = "#rstats", N = 1000, ncrit = 10)

Arguments

term

A character variable to search for, defaults to ‘#rstats’

N

An number of tweets to fetch, defaults to 1000

ncrit

A number of hashtags after which use is deemed excessive, defaults to 10

Details

This is a modified version of the code in a wonderful tweet by Colin Gillespie (csgillespie) on 2020-August-26. It requires the rtweet and data.table packages.

Value

NULL, invisibly, but the function is invoked for the side effect of calling post_mute.

Author(s)

Dirk Eddelbuettel

Examples

1
2
3
4
5
6
## Not run: 
## mute users with more than 10 hashtags among
## the 1000 most recent #rstats tweets
muteTweeters("#rstats", 1000, 10)

## End(Not run)

dang documentation built on Oct. 30, 2021, 1:08 a.m.