Back

Explore Courses Blog Tutorials Interview Questions
0 votes
5 views
in R Programming by (16.4k points)

I have a Corpus in R utilizing the tm bundle/package. I'm applying the removeWords capacity/function to eliminate stopwords 

tm_map(abs, removeWords, stopwords("english")) 

Is there an approach to add my own custom stop words to this rundown?

1 Answer

0 votes
by (26.4k points)

Here, stopwords simply furnishes you with a vector of words, simply join your own ones to this.

tm_map(abs, removeWords, c(stopwords("english"),"my","custom","words")) 

Interested to learn r programming in detail? Come and Join the R course.

Browse Categories

...