t.dsm | R Documentation |
Given a distributional model x
, t(x)
returns a new DSM object
representing the transposed co-occurrence and/or score matrix. Marginal frequencies
and other row/column information are updated accordingly.
## S3 method for class 'dsm' t(x)
x |
an object of class |
A dsm
object with rows and columns swapped.
Stephanie Evert (https://purl.org/stephanie.evert)
dsm
tdm <- DSM_TermContext # term-document model tdm$M dtm <- t(tdm) # document-term model dtm$M
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.