Last chance! 50% off unlimited learning
Sale ends in
Docs(x)
nDocs(x)
nTerms(x)
Terms(x)
TermDocumentMatrix
or
DocumentTermMatrix
.Docs
and Terms
, a character vector with document IDs and
terms, respectively.For nDocs
and nTerms
, an integer with the number of document IDs
and terms, respectively.
data("crude")
tdm <- TermDocumentMatrix(crude)[1:10,1:20]
Docs(tdm)
nDocs(tdm)
nTerms(tdm)
Terms(tdm)
Run the code above in your browser using DataLab