View source: R/textstat_simil.R
as.list.textstat_proxy | R Documentation |
Coercion methods for objects created by textstat_simil()
and
textstat_dist()
.
## S3 method for class 'textstat_proxy'
as.list(x, sorted = TRUE, n = NULL, diag = FALSE, ...)
## S3 method for class 'textstat_proxy'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
diag = FALSE,
upper = FALSE,
...
)
x |
any R object. |
sorted |
sort results in descending order if |
n |
the top |
diag |
logical; if |
... |
additional arguments to be passed to or from methods. |
row.names |
|
optional |
logical. If |
upper |
logical; if |
as.data.list
for a textstat_simil
or
textstat_dist
object returns a list equal in length to the columns of the
simil or dist object, with the rows and their values as named elements. By default,
this list excludes same-time pairs (when diag = FALSE
) and sorts the values
in descending order (when sorted = TRUE
).
as.data.frame
for a textstat_simil
or
textstat_dist
object returns a data.frame of pairwise combinations
and the and their similarity or distance value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.