discern,Venn-method {RVenn} | R Documentation |
Set difference.
Description
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.
Usage
## S4 method for signature 'Venn'
discern(venn, slice1, slice2 = "all")
Arguments
venn |
(Required) A |
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.
Examples
venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
discern(venn, slice1 = 1)
discern(venn, slice1 = c(1, 2), slice2 = 3)
[Package RVenn version 1.1.0 Index]