inspect {tm} | R Documentation |
Inspect Objects
Description
Inspect, i.e., display detailed information on a corpus, a term-document matrix, or a text document.
Usage
## S3 method for class 'PCorpus'
inspect(x)
## S3 method for class 'VCorpus'
inspect(x)
## S3 method for class 'TermDocumentMatrix'
inspect(x)
## S3 method for class 'TextDocument'
inspect(x)
Arguments
x |
Either a corpus, a term-document matrix, or a text document. |
Examples
data("crude")
inspect(crude[1:3])
inspect(crude[[1]])
tdm <- TermDocumentMatrix(crude)[1:10, 1:10]
inspect(tdm)
[Package tm version 0.7-13 Index]