Dictionary {tm} | R Documentation |
Constructs a dictionary from a character vector or a term-document matrix.
## S3 method for class 'character': Dictionary(x) ## S3 method for class 'TermDocumentMatrix': Dictionary(x)
x |
A character vector or a term-document matrix holding the terms for the dictionary. |
An S4 object of class Dictionary
which extends the class
character
representing a dictionary.
Ingo Feinerer
Dictionary(c("some", "tokens")) data(crude) Dictionary(TermDocumentMatrix(crude))