Trying to do some analysis of twitter data. Downloaded the tweets and created a corpus from the text of the tweets using the below
# Creating a Corpus
wim_co
I think this problem happens because of some weird characters appear in the text. Here is my solution:
wim_corpus = tm_map(wim_corpus, str_replace_all,"[^[:alnum:]]", " ")
tdm = TermDocumentMatrix(wim_corpus,
control = list(removePunctuation = TRUE,
stopwords = TRUE,
removeNumbers = TRUE, tolower = TRUE))