Intersection matrix

intersectionMatrix(object, ...)

# S4 method for list
intersectionMatrix(object)

Arguments

object

Object.

...

Additional arguments.

Value

matrix.

Note

Updated 2020-08-18.

Examples

object <- list( a = c("a", "b", "c", "d", "e", "f"), b = c("b", "c", "d", "e", "f", "g"), c = c("c", "d", "e", "f", "g", "h") ) mat <- intersectionMatrix(object) rowSums(mat)
#> a b c d e f g h #> 1 2 3 3 3 3 2 1