CoMembership | R Documentation |
Generates a symmetric and binary matrix indicating, if two items are co-members, i.e. belong to the same cluster.
CoMembership(groups)
groups |
vector of group membership. |
A symmetric and binary matrix.
# Simulated grouping structure
mygroups <- c(rep(1, 3), rep(2, 5), rep(3, 2))
# Co-membership matrix
CoMembership(mygroups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.