Learn R Programming

tm (version 0.4)

TextRepository: Text Repository

Description

Constructs a text repository.

Usage

## S3 method for class 'Corpus':
TextRepository(object, meta = list(created = as.POSIXlt(Sys.time(), tz = "GMT")))

Arguments

object
A directory containing the documents.
meta
An initial list of tag-value pairs for the meta data.

Value

  • An S4 object of class TextRepository which extends the class list containing text document collections.

Examples

Run this code
data("crude")
repo <- TextRepository(crude)
summary(repo)
RepoMetaData(repo)

Run the code above in your browser using DataLab