I am currently working on a email-classification problem based on keywords in the contents of the mail. I am new to R and need some help. I have a very long list of stop-words in a text file that I would like to be used as stop-words in addition to the inbuilt one in R.
Say the file that has additional keywords is stop.txt. Now, how do I modify the code below to accommodate this?
corpus <- tm_map(corpus, removeWords, c(stopwords('english')))
Can anyone help me with the revised code?