Dictionary {tm}R Documentation

Dictionary

Description

Constructs a dictionary from a character vector or a term-document matrix.

Usage

Dictionary(object)

Arguments

object A character vector or a term-document matrix holding the terms for the dictionary.

Value

An S4 object of class Dictionary which extends the class character representing a dictionary.

Author(s)

Ingo Feinerer

Examples

Dictionary(c("some", "tokens"))
data(crude)
Dictionary(TermDocMatrix(crude))

[Package tm version 0.3-3 Index]