extract the vector of combinations

getCombinations(upsetjs)

Arguments

upsetjs

an object of class upsetjs

Value

vector of sets

Examples

upsetjs() %>%
  fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
  getCombinations()
#> [[1]]
#> $name
#> [1] "a"
#> 
#> $type
#> [1] "intersection"
#> 
#> $elems
#> [1] 1 2 3
#> 
#> $color
#> NULL
#> 
#> $cardinality
#> [1] 3
#> 
#> $setNames
#> [1] "a"
#> 
#> $degree
#> [1] 1
#> 
#> attr(,"class")
#> [1] "upsetjs_combination"
#> 
#> [[2]]
#> $name
#> [1] "a&b"
#> 
#> $type
#> [1] "intersect"
#> 
#> $elems
#> [1] 2 3
#> 
#> $color
#> NULL
#> 
#> $cardinality
#> [1] 2
#> 
#> $setNames
#> [1] "a" "b"
#> 
#> $degree
#> [1] 2
#> 
#> attr(,"class")
#> [1] "upsetjs_combination"
#> 
#> [[3]]
#> $name
#> [1] "b"
#> 
#> $type
#> [1] "intersection"
#> 
#> $elems
#> [1] 2 3
#> 
#> $color
#> NULL
#> 
#> $cardinality
#> [1] 2
#> 
#> $setNames
#> [1] "b"
#> 
#> $degree
#> [1] 1
#> 
#> attr(,"class")
#> [1] "upsetjs_combination"
#>