How to use customized stopwords in R?

text_mining
r
termdocumentmatrix

#1

Hello.

I am trying to use customized stopwords in R.

but the words Iam trying to remove still exist.

my code is below.

######################################################

delete.2 <- read.csv('tdm.2.delete.csv',stringsAsFactors=F)
# road csv file containing the words I want to remove
delete.2.1 <- delete.2[[1]]
# make data.frame to character Vector
# 'delete.2.1 is my customized stopwords

cps.2.1 <- tm_map(cps.2, removeWords, delete.2.1)

tdm.2.1 <- TermDocumentMatrix(cps.2.1, control=list(
                           wordLengths=c(3, 20),
                           weighting=weightTf))

########################################################

plz let me know if there is wrong

thx