I am getting an error with the DocumentTermMatrix used as indicated in the book:
dtm = DocumentTermMatrix(docs)
Error in simple_triplet_matrix(i, j, v, nrow = length(terms), ncol = length(corpus), :
'i, j' invalid
Can you please indicate how to solve it.
Thank you