01-pgbook: Class pgbook

Description Creating Objects Slots Details See Also

Description

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

Creating Objects

new('pgbook', url = ..., title = ..., author = ..., header = ..., text = ..., nlines = ..., nwords = ..., language = ..., license = ...)

Slots

url:

url the text came from.

header:

Preamble to text inserted by Project Gutenberg.

license:

The license associated to the text.

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

book-class, rgutenberg


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