PlainTextDocument | R Documentation |
Create plain text documents.
PlainTextDocument(x = character(0),
author = character(0),
datetimestamp = as.POSIXlt(Sys.time(), tz = "GMT"),
description = character(0),
heading = character(0),
id = character(0),
language = character(0),
origin = character(0),
...,
meta = NULL,
class = NULL)
x |
A character string giving the plain text content. |
author |
a character string or an object of class |
datetimestamp |
an object of class |
description |
a character string giving a description. |
heading |
a character string giving the title or a short heading. |
id |
a character string giving a unique identifier. |
language |
a character string giving the language (preferably as IETF language tags, see language in package NLP). |
origin |
a character string giving information on the source and origin. |
... |
user-defined document metadata tag-value pairs. |
meta |
a named list or |
class |
a character vector or |
An object inheriting from class
, PlainTextDocument
and
TextDocument
.
TextDocument
for basic information on the text document
infrastructure employed by package tm.
(ptd <- PlainTextDocument("A simple plain text document",
heading = "Plain text document",
id = basename(tempfile()),
language = "en"))
meta(ptd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.