01-book: Class book

Description Creating Objects Slots Details See Also

Description

An S4 class for storing book data and some of its metadata.

Creating Objects

new('book', text = ..., title = ..., author = ..., language = ...,)

Slots

text:

The actual text corpus.

title:

Title of the text.

author:

Author of the text.

language:

The (human) language the text is written in.

Details

The specification for a book object is as follows:

* The slot text consists of the corpus itself, stored as character vector. This should be the equivalent of calling readLines() on an unformatted text representation of the book.

See Also

pgbook-class


wrathematics/rgutenberg documentation built on May 4, 2019, 10:54 a.m.