Description Usage Arguments Value
Create a matrix from a vector of text. This function does not do any text cleaning.
1 2 3 |
text |
A vector of strings to be made into a matrix |
labels |
Labels for classification |
minDocFreq |
Minimum frequency of a word to be included (count or fraction) |
maxDocFreq |
Maxmimum frequency of a word to be included (count or fraction) |
minWordLength |
Minimum wordlength for a word to be included |
maxWordLength |
Maximum wordlength for a word to be included |
weighting |
Weighting to use. Choose between frequency, relFreq, relMaxFreq, logFreq, tfidf (See dfm_weight) |
ngrams |
Vector that specifies type of ngrams to generate |
A document feature matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.