check.dsm {wordspace} | R Documentation |
Validate Internal Structure of DSM Object (wordspace)
Description
Validate the internal structure of a DSM object and return a list with information about the object.
Usage
check.dsm(model, validate = FALSE, nonneg.check = FALSE)
Arguments
model |
an object of class |
validate |
carry out extended validation of internal consistency? (may be expensive) |
nonneg.check |
if |
Value
Aborts with error message if any inconsistency is detected. Otherwise a list with the following items is returned:
nrow |
number of rows (target terms) of the DSM |
ncol |
number of columns (features) of the DSM |
N |
sample size of the underlying data set (may be |
M$ok |
whether co-occurrence frequency matrix |
M$sparse |
whether |
M$canonical |
whether |
M$nonneg |
whether |
S$ok |
whether score matrix |
S$sparse |
whether |
S$canonical |
whether |
S$nonneg |
whether |
locked |
|
Author(s)
Stephanie Evert (https://purl.org/stephanie.evert)
See Also
Examples
check.dsm(DSM_TermTerm)