Learn R Programming

needmining (version 0.1.1)

removeTweetsStopwords: 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 ';'

Value

a filtered data frame

Details

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

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab