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, c
ombine own ones this.
tm_map(abs, removewords, c(stopwords("english"),"my","custom","words"))
Comments
Post a Comment