Description Usage Arguments See Also
View source: R/textstat_simil.R
This is an underlying function for textstat_dist
and
textstat_simil
but returns TsparseMatrix
.
1 2 3 4 5 6 7 8 9 10 11 12 | textstat_proxy(
x,
y = NULL,
margin = c("documents", "features"),
method = c("cosine", "correlation", "jaccard", "ejaccard", "dice", "edice", "hamman",
"simple matching", "euclidean", "chisquared", "hamming", "kullback", "manhattan",
"maximum", "canberra", "minkowski"),
p = 2,
min_proxy = NULL,
rank = NULL,
use_na = FALSE
)
|
x |
a dfm objects; |
y |
if a dfm object is provided, proximity between documents or
features in |
margin |
identifies the margin of the dfm on which similarity or
difference will be computed: |
method |
character; the method identifying the similarity or distance measure to be used; see Details. |
p |
The power of the Minkowski distance. |
min_proxy |
the minimum proximity value to be recoded. |
rank |
an integer value specifying top-n most proximity values to be recorded. |
use_na |
if |
textstat_dist()
, textstat_simil()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.