removeTweetsStopwords {needmining}R Documentation

Remove Tweets containing stopwords

Description

removeTweetsStopwords removes Tweets containing stopwords

Usage

removeTweetsStopwords(tweetMessages, stopWords)

Arguments

tweetMessages

a dataframe containing the Tweet messages

stopWords

a string containing stopwords separated by ';'

Details

This function removes Tweets containing stopwords from a list of Twitter messages.

Value

a filtered data frame

Author(s)

Dorian Proksch <dorian.proksch@hhl.de>

Examples

stopWords <- "review;giveaway;save;deal;win;won;price;launch;news;gift;announce;
 			 reveal;sale;http;buy;bought;purchase;sell;sold;invest;discount;
			coupon;ship;giving away"
data(NMTrainingData)
filteredTweets <- removeTweetsStopwords(NMTrainingData, stopWords)

[Package needmining version 0.1.1 Index]