MakeDTM | R Documentation |
Creates a document term matrix with text2vec.
MakeDTM(tokens, ids, vocabulary)
tokens |
List of character vectors containing tokens for each document. |
ids |
Ids of the different documents. |
vocabulary |
Vocabulary object. |
A dgTMatrix containing the DTM.
MakeVocabulary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.