Skip to contents

Intersection matrix

Usage

intersectionMatrix(object, ...)

# S4 method for DFrame
intersectionMatrix(object)

# S4 method for data.frame
intersectionMatrix(object)

# S4 method for list
intersectionMatrix(object)

# S4 method for matrix
intersectionMatrix(object)

Arguments

object

Object.

...

Additional arguments.

Value

matrix.

Note

Updated 2021-08-13.

Examples

object <- list(
    "aaa" = c("a", "b", "c", "d", "e", "f"),
    "bbb" = c("b", "c", "d", "e", "f", "g"),
    "ccc" = 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