Venn: Build a 'Venn' object.

Description Usage Arguments Value Examples

Description

Venn builds a Venn object from a list.

Usage

1
2
## S4 method for signature 'ANY'
Venn(sets)

Arguments

sets

(Required) A list containing vectors in the same class. If a vector contains duplicates they will be discarded. If the list doesn't have names the sets will be named as "Set_1", "Set_2", "Set_3" and so on.

Value

A Venn object.

Examples

1
2
venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
print(venn)

Example output

An object of class "Venn"
Slot "sets":
$Set_1
 [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j"

$Set_2
 [1] "c" "d" "e" "f" "g" "h" "i" "j" "k" "l"

$Set_3
 [1] "f" "g" "h" "i" "j" "k" "l" "m" "n" "o"


Slot "names":
[1] "Set_1" "Set_2" "Set_3"

RVenn documentation built on July 19, 2019, 1:02 a.m.