Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (12.7k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.7k users

Browse Categories

...