intersectionMatrix(object, ...)# S4 method for DFrameintersectionMatrix(object)# S4 method for data.frameintersectionMatrix(object)# S4 method for listintersectionMatrix(object)# S4 method for matrixintersectionMatrix(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