Stopword() error


Everytime I try that stopword function it doesn’t work… but if I replace that code section with that „
tdm= TermDocumentMatrix (my_ corpus, control = list (removePunctuation = TRUE,

stopwords = c ("SDSU", "project", stopwords ("english")) ,

removeNumbers = TRUE, tolower = TRUE) )“
it works. But I need to cut the words big and data…

The error is trying to tell you it doesn’t recognize the character before Big - it looks like a quote but isn’t one. Notice how it looks different than the other quotes. If you copied and pasted this list from a different program that is probably what happened. Try replacing the quotes in your stopword vector for Big and Data and run again

1 Like