inspect: Inspect Objects

View source: R/corpus.R

inspectR 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)

tm documentation built on Sept. 11, 2024, 6:47 p.m.