#to prepare for dataframesource you must change name to doc_id and text. textdataframe <- textdataframe %>% rename(doc_id= orig_id, text= orig.narr) corpus=Corpus