unite returns the union of the sets in a Venn object.

unite(venn, slice = "all")

# S4 method for Venn
unite(venn, slice = "all")

Arguments

venn

(Required) A Venn object.

slice

(Optional) The names or the indices of sets of interest. Default is "all", meaning the union will be calculated for all the sets.

Value

A vector showing the union of the sets.

Author

tyakyol@gmail.com

Examples

  venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
  unite(venn)
#>  [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o"
  unite(venn, slice = c(1, 2))
#>  [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l"