Skip to contents

Check which elements are in which sets.

Usage

incidence(object)

# S4 method for TidySet
incidence(object)

Arguments

object

Object to be coerced or tested.

Value

A matrix with elements in rows and sets in columns where the values indicate the relationship between the element and the set.

Methods (by class)

  • incidence(TidySet): Incidence of the TidySet

Examples

x <- list("a" = letters[1:5], "b" = LETTERS[3:7])
a <- tidySet(x)
incidence(a)
#>   a b
#> a 1 0
#> b 1 0
#> c 1 0
#> d 1 0
#> e 1 0
#> C 0 1
#> D 0 1
#> E 0 1
#> F 0 1
#> G 0 1