Learn R Programming

tm (version 0.3-3)

TextRepository: Text Repository

Description

Constructs a text repository.

Usage

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

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