extract the vector of sets
getSets(upsetjs)
an object of class upsetjs
vector of sets
upsetjs() %>%
fromList(list(a = c(1, 2, 3), b = c(2, 3))) %>%
getSets()
#> [[1]]
#> $name
#> [1] "a"
#>
#> $type
#> [1] "set"
#>
#> $elems
#> [1] 1 2 3
#>
#> $cardinality
#> [1] 3
#>
#> $color
#> NULL
#>
#> attr(,"class")
#> [1] "upsetjs_set"
#>
#> [[2]]
#> $name
#> [1] "b"
#>
#> $type
#> [1] "set"
#>
#> $elems
#> [1] 2 3
#>
#> $cardinality
#> [1] 2
#>
#> $color
#> NULL
#>
#> attr(,"class")
#> [1] "upsetjs_set"
#>