strip_retweets: A function to remove retweets

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Given a list of status objects, will remove retweets from the list to provide a "pure" set of tweets.

Usage

1
strip_retweets(tweets, strip_manual = TRUE, strip_mt = TRUE)

Arguments

tweets

A list of status objects

strip_manual

If TRUE will remove old style manual retweets

strip_mt

If TRUE will remove modified tweets (MT)

Details

Newer style retweets are summarily removed regardless of options.

Older style retweets (aka manual retweets) are tweets of the form RT @user blah blah. If strip_manual is TRUE, tweets containing the RT string will have everything including and to the right of the RT will be removed. Everything to the left of the RT will remain, as this should be original content.

If strip_mt is TRUE, tweets will be stripped in the same manner as strip_manual but using the string MT

Value

A list of status objects with retweeted content removed

Author(s)

Jeff Gentry

See Also

status

Examples

1
2
3
4
5
  ## Not run: 
    tweets = searchTwitter("stuff")
    no_retweets = strip_retweets(tweets)
  
## End(Not run)

twitteR documentation built on May 2, 2019, 6:46 a.m.