minimal.members.decomposition | R Documentation |
Minimal members decomposition
minimal.members.decomposition(
incidence,
minimum.memberships = 3,
check.for.nested = TRUE
)
incidence |
a sparse incidence matrix |
minimum.memberships |
the minimum number of memberships for the individuals (rows) |
a list of incidence matrices
data(den)
den <- den[den$SOURCE != "Events",]
incidence <- xtabs(~NAME + AFFILIATION, droplevels(den), sparse = TRUE)
l.inc <- minimal.members.decomposition(incidence, 3)
level.membership(l.inc)
l.inc[[5]] %>% colSums() %>% sort() %>% as.matrix()
l.inc[[5]] %>% rowSums() %>% sort() %>% as.matrix()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.