Learn R Programming

textmining (version 0.0.1)

tmTextDocument: Function to create single tmTextDocument with meta data. The object can store any from of documents: raw (string), parsed or table of words counts.

Description

Function to create single tmTextDocument with meta data. The object can store any from of documents: raw (string), parsed or table of words counts.

Usage

tmTextDocument(x = NULL, ...)

Arguments

x
source
...
metadata to set. Can be set as language = "pl" or newmeta = "random"

Value

returns tmTextDocument

Examples

Run this code
text <-  tmTextDocument("This is text")
text2 <- tmTextDocument("This is text", language = "en", title = "My test")

Run the code above in your browser using DataLab