Learn R Programming

tm (version 0.3-3)

Dictionary: 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.

Examples

Run this code
Dictionary(c("some", "tokens"))
data(crude)
Dictionary(TermDocMatrix(crude))

Run the code above in your browser using DataLab