Did you have any other warnings going on. I had this same error and fix it because I got a bunch of words that after stemming and number removal some of my files were blank. After deleting these files I made the textmatrix fine. I think when it tries to make the dataframe there is a mismatch between the number of file that were named and the number that actually have any usable text in them if you have blank files.
Peace, Andrew Cassidy -- View this message in context: http://r.789695.n4.nabble.com/R-new-to-R-don-t-understand-errors-tp809147p3308111.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.