I am using the tm package to clean up some data using the following code:
tm
mycorpus <- Corpus(VectorSource(x)) mycorpus <- tm_map(mycorpus,
The older answer posted by MrFlick works only in previous version on tm, I was able to fix it by removing content from the formula.
dataframe<-data.frame(text=unlist(sapply(mycorpus, `[`)), stringsAsFactors=F)