| countIntersect | R Documentation |
Given n sets, countIntersect computes the number of elements
being shared by the individual n*(n-1)/2 pairs of sets.
countIntersect(..., logical = FALSE)
... |
several numeric or character vectors to intersect; alternatively, a data frame or matrix can be supplied, whose columns will be treated as individual sets |
logical |
should |
A matrix of size n*n. If logical==FALSE, on the diagonal,
there are numbers of elements in each set, and at position i,j
there is the number of elements in set j shared with set i.
If logical==TRUE, on the diagonal, there are numbers of TRUEs
in each set, and at position i,j there is the number of TRUEs
shared by sets i and j.
Tomas Sieger
countIntersect(1:2,1:3)
countIntersect(c('a','b'),c('a','c'),c('b','c'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.