text mining - Adding custom stopwords in R tm -


i have corpus in r using tm package. applying removewords function remove stopwords

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

is there way add own custom stop words list?

stopwords provides vector of words, combine own ones this.

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

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -