Description Usage Arguments Value Examples
make DTM
1 2 |
docs |
dataframe. Every row is document. |
key |
character. Vector type Keywords. if none, all words would be keywords. |
LABEL |
logical. In need of LABEL column. |
weight |
character. tf or tfidf |
TEXT.name |
character. Column name which whould be TEXT. |
LABEL.name |
character. Column name which would be LABEL. |
RHINO |
logical. In need of morphological anaysis about TEXT column. |
pos |
character. ALL(all Part-Of-Speech), noun(NNG, NNP, NP), verb(VV, VA, XR), NV(noun, verb), END(EC, EF), NNG, NNP, NP, NNB, VV, VA, XR, VX, EC, EF, EP |
matrix or dataframe(if LABEL=TRUE)
1 2 3 | makeDTM(docs = docs, key = c("excel", "computer"), pos="noun")
makeDTM(docs = docs, key = c("excel", "computer"), LABEL = TRUE, weight = "tfidf", TEXT.name="body", LABEL.name="tag", pos="verb")
makeDTM(docs = docs, key = c("excel", "computer"), weight = "tfidf", TEXT.name="body", LABEL.name="tag", pos="verb")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.