Retrieve or set the dimnames of the co-occurrence and/or score matrix represented by a DSM object.
## S3 method for class 'dsm' dimnames(x) ## S3 replacement method for class 'dsm' dimnames(x) <- value
an object of class
a list of two character vectors with new row and column names for
This method automatically checks that the row and column names of the co-occurrence and/or score matrix are consistent with the target terms and features listed in the row/column information tables.
dimnames() of a DSM object are always a list of length 2, consisting of two character vectors with row and column labels, respectively.
Stephanie Evert (https://purl.org/stephanie.evert)
rownames(DSM_TermContext) colnames(DSM_TermContext) tmp <- DSM_TermContext rownames(tmp) <- "pet" head(tmp, 4, 6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.