I\'m using package tm.
Say I have a data frame of 2 columns, 500 rows. The first column is ID which is randomly generated and has both character and number in it: \"
I come up with this problem too, for the needs of changing the id of each content, I suggest use this code
for(k in 1:length(mycorpus)) { mycorpus[[k]]$meta$id <- mycorpus$ID[k] }