Docs: Access Document IDs and Terms

Description Usage Arguments Value Examples

View source: R/matrix.R

Description

Accessing document IDs, terms, and their number of a term-document matrix or document-term matrix.

Usage

1
2
3
4
Docs(x)
nDocs(x)
nTerms(x)
Terms(x)

Arguments

x

Either a TermDocumentMatrix or DocumentTermMatrix.

Value

For 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.

Examples

1
2
3
4
5
6

tm documentation built on May 30, 2017, 6:57 a.m.

Search within the tm package
Search all R packages, documentation and source code