NewsgroupDocument-class {tm}R Documentation

Newsgroup Text Document

Description

A class representing a newsgroup document with additional information. The newsgroup documents must be formatted according to the Newsgroup dataset from the UCI KDD archive.

Objects from the Class

Objects can be created by calls of the form new("NewsgroupDocument", ...).

Slots

Newsgroup:
Object of class character containing the newsgroups where the document has been posted.
URI:
Object of class character containing the path and filename holding the data physically on disk.
Cached:
Object of class logical containing the status whether the file was already loaded into memory.

Extends

Class character and TextDocument, directly.

Methods

Content
signature(object = "NewsgroupDocument"): Returns the text corpus, i.e., the actual character data slot.
Content<-
signature(object = "NewsgroupDocument"): Sets the text corpus, i.e., the actual character data slot.
URI
signature(object = "NewsgroupDocument"): Returns the filename on disk.
Cached
signature(object = "NewsgroupDocument"): Returns status information for loading on demand.
Cached<-
signature(object = "NewsgroupDocument"): Sets status information for loading on demand.

Author(s)

Ingo Feinerer

References

http://kdd.ics.uci.edu/databases/20newsgroups/20newsgroups.html


[Package tm version 0.3-3 Index]