Accessing document IDs, terms, and their number of a term-document matrix or document-term matrix.
1 2 3 4
Terms, a character vector with document IDs and
nTerms, an integer with the number of document IDs
and terms, respectively.
1 2 3 4 5 6