Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

muteTweeters

Mute Twitter Users with Excessive Hashtag Use


Description

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

Usage

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

## Not run: 
## mute users with more than 10 hashtags among
## the 1000 most recent #rstats tweets
muteTweeters("#rstats", 1000, 10)

## End(Not run)

dang

'Dang' Associated New Goodies

v0.0.13
GPL (>= 2)
Authors
Dirk Eddelbuettel with contributions by Brodie Gaslam, Kevin Denny, Kabira Namit, Colin Gillespie, R Core, Josh Ulrich, and others.
Initial release
2021-02-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.