names {tm} | R Documentation |
Retrieve the row names, column names, dimnames, document IDs, and terms of a term-document matrix or document-term matrix.
x |
Either a term-document matrix or document-term matrix. |
data("crude") tdm <- TermDocumentMatrix(crude)[1:10,1:20] rownames(tdm) colnames(tdm) dimnames(tdm) Docs(tdm) Terms(tdm)