k.circles | R Documentation |
K-circles decomposition
k.circles(incidence, minimum.memberships = 3, check.for.nested = TRUE)
incidence |
a sparse incidence matrix |
minimum.memberships |
the minimum number of memberships for the individuals (rows) |
an object of class "k.circles"
data(den)
den <- den[den$SOURCE != "Events",]
incidence <- xtabs(~NAME + AFFILIATION, droplevels(den), sparse = TRUE)
l.inc <- k.circles(incidence, 3, check.for.nested = TRUE)
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.