removeTweetsStopwords: Remove Tweets containing stopwords

Description Usage Arguments Details Value Author(s) Examples

View source: R/removeTweetsStopwords.R

Description

removeTweetsStopwords removes Tweets containing stopwords

Usage

1
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

1
2
3
4
5
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)

needmining documentation built on May 1, 2019, 8:36 p.m.