Learn R Programming

tm (version 0.4)

inspect: Inspect Objects

Description

Inspect, i.e., display detailed information on a corpus or a term-document matrix.

Usage

## S3 method for class 'VCorpus':
inspect(x)
## S3 method for class 'PCorpus':
inspect(x)
## S3 method for class 'TermDocumentMatrix':
inspect(x)

Arguments

x
Either a corpus or a term-document matrix.

Examples

Run this code
data("crude")
inspect(crude[1:3])
tdm <- TermDocumentMatrix(crude)[1:10, 1:10]
inspect(tdm)

Run the code above in your browser using DataLab