set the vector of combinations

setCombinations(upsetjs, value)

Arguments

upsetjs

an object of class upsetjs

value

the vector of combinations

Value

the object given as first argument

Examples

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