Learn R Programming

tm (version 0.4)

PCorpus: Permanent Corpus Constructor

Description

Constructs a permanent corpus.

Usage

PCorpus(object, readerControl = list(reader = object@DefaultReader, language = "eng"), dbControl = list(dbName = "", dbType = "DB1"), ...)

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
dbControl
A list with the named components dbName giving the filename holding the sourced out objects (i.e., the database), and dbType holding a valid database type as supported by package filehash. Under activated d
...
Optional arguments for the reader.

Value

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

Examples

Run this code
txt <- system.file("texts", "txt", package = "tm")
PCorpus(DirSource(txt), dbControl = list(dbName = "myDB.db", dbType = "DB1"))

Run the code above in your browser using DataLab