as.matrix.simil: Coerce a simil object into a matrix

Description Usage Arguments Note

View source: R/textstat_simil.R

Description

as.matrix.simil coerces an object returned from 'textstat_simil()' into a matrix

Usage

1
2
## S3 method for class 'simil'
as.matrix(x, diag = 1, ...)

Arguments

diag

the value to use on the diagonal representing self-similarities

...

unused

Note

Because for the similarity methods implemented in quanteda, the similarity of an object with itself will be 1.0, diag defaults to this value. This differs the default diag = NA in as.matrix.simil in the proxy package.


quanteda/quanteda documentation built on Feb. 16, 2019, 5:45 a.m.