Learn R Programming

tm (version 0.4)

VCorpus: Volatile Corpus Constructor

Description

Constructs a volatile corpus.

Usage

Corpus(object, readerControl = list(reader = object@DefaultReader, language = "eng"), ...)

Arguments

object
A Source object.
readerControl
A list with the named components reader representing a reading function capable of handling the file format found in object, and language giving the text's language (preferably in ISO 6
...
Optional arguments for the reader.

Value

  • An S4 object of class VCorpus which extends the class list containing a corpus.

Examples

Run this code
reut21578 <- system.file("texts", "reut21578", package = "tm")
Corpus(DirSource(reut21578), readerControl = list(reader = readReut21578XML))

Run the code above in your browser using DataLab