Learn R Programming

polmineR (version 0.7.11)

corpus: Get corpus/corpora available or used.

Description

Calling corpus() will return a data.frame listing the corpora described in the active registry directory, and some basic information on the corpora. If object is an object inheriting from the textstat, or the bundle class, the corpus used to generate the object is returned.

Usage

corpus(object)

# S4 method for textstat corpus(object)

# S4 method for kwic corpus(object)

# S4 method for character corpus(object)

# S4 method for bundle corpus(object)

# S4 method for missing corpus()

Arguments

object

An object inheriting from the textstat or bundle superclasses.

Examples

Run this code
# NOT RUN {
use("polmineR")
corpus()

p <- partition("REUTERS", places = "kuwait")
corpus(p)

pb <- partition_bundle("REUTERS", s_attribute = "id")
corpus(pb)
# }

Run the code above in your browser using DataLab