discern returns the difference between two group of sets selected from a Venn object. If multiple sets are chosen for the slices, union of those sets will be used.

discern(venn, slice1, slice2 = "all")

# S4 method for class 'Venn'
discern(venn, slice1, slice2 = "all")

Arguments

venn

(Required) A Venn object.

slice1

(Required) The name or the index of the set of interest. Multiple sets can be selected.

slice2

(Optional) The name or the index of the set of interest. Multiple sets can be selected. Default is all the sets except the sets of slice1.

Value

A vector showing the difference between slice1 and slice2.

Author

tyakyol@gmail.com

Examples

venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
discern(venn, slice1 = 1)
#> [1] "a" "b"
discern(venn, slice1 = c(1, 2), slice2 = 3)
#> [1] "a" "b" "c" "d" "e"