I am trying to clean and process post data from twitter. The initial corpus produces the following after cleaning:
text_corpus[[1]]$content
[1] "I actually would love if my Mad Scientist was drawn in a Gorillaz-style fanart..."
text_corpus[[5]]$content
[1] "I actually would love if my Mad Scientist was drawn in a Gorillaz-style fanart..."
When I process the text further I get this error:
Error in stopwords(kind = "SMART") : unused argument (kind = "SMART")
This is the code I use to remove stop words
tm_map(content_transformer(tolower)) %>%
tm_map(removeNumbers) %>%
tm_map(removePunctuation) %>%
tm_map(removeWords, stopwords(kind = "SMART")) %>%
tm_map(stemDocument) %>%
tm_map(stripWhitespace)
Retrieving the content of the text_corpus after this results in the exact same text as above. Have I done something wrong? Is there anything else I can use to remove stopwords? Thanks