overlap
returns the same elements of the sets in a Venn
object.
overlap(venn, slice = "all")
# S4 method for class 'Venn'
overlap(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 intersection will be calculated for all the sets.
Value
A vector showing the intersection of the sets.
Examples
venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
overlap(venn)
#> [1] "f" "g" "h" "i" "j"
overlap(venn, slice = c(1, 2))
#> [1] "c" "d" "e" "f" "g" "h" "i" "j"