strip_retweets {twitteR} | R Documentation |
A function to remove retweets
Description
Given a list of status objects, will remove retweets from the list to provide a "pure" set of tweets.
Usage
strip_retweets(tweets, strip_manual = TRUE, strip_mt = TRUE)
Arguments
tweets |
A list of |
strip_manual |
If |
strip_mt |
If |
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
Examples
## Not run:
tweets = searchTwitter("stuff")
no_retweets = strip_retweets(tweets)
## End(Not run)