Description Usage Arguments Value Examples
Run a hierarchical clustering on documents of a corpus based on
a correspondence analysis. The number of axes from ca
which are
used depends on the value of the n
argument passed to corpus_ca
.
1 | corpus_clustering(ca, n = 0)
|
ca |
A |
n |
Number of clusters to create. If 0 (the default), it is determined by clicking on the plot to choose the cut height. |
A HCPC
object.
1 2 3 4 5 | file <- system.file("texts", "reut21578-factiva.xml", package="tm.plugin.factiva")
corpus <- import_corpus(file, "factiva", language="en")
dtm <- build_dtm(corpus)
res <- corpus_ca(corpus, dtm, ncp=2, sparsity=0.98)
corpus_clustering(res, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.