I\'m trying to use the tm package in R to perform some text analysis. I tied the following:
require(tm) dataSet <- Corpus(DirSource(\'tmp/\')) dataSet <
I was able to fix it by converting the data back to plain text format using this line of code
corpus <- tm_map(corpus, PlainTextDocument)
thanks to user https://stackoverflow.com/users/4386239/paul-gowder
for his response here
https://stackoverflow.com/a/29529990/815677