check.dsm | R Documentation |
Validate the internal structure of a DSM object and return a list with information about the object.
check.dsm(model, validate = FALSE, nonneg.check = FALSE)
model |
an object of class |
validate |
carry out extended validation of internal consistency? (may be expensive) |
nonneg.check |
if |
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 is available |
M$sparse |
whether M is sparse or dense (only present if |
M$canonical |
whether M is in canonical DSM format (only present if |
M$nonneg |
whether M is non-negative (only present if |
S$ok |
whether score matrix S is available |
S$sparse |
whether S is sparse or dense (only present if |
S$canonical |
whether S is in canonical DSM format (only present if |
S$nonneg |
whether S is non-negative (only present if |
locked |
|
Stephanie Evert (https://purl.org/stephanie.evert)
dsm
, print.dsm
check.dsm(DSM_TermTerm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.