set_union(): Returns the union of the sets in ....
set_intersect(): Returns the intersect of the sets in ....
set_difference(): Returns the difference of the sets in ....
Usage
set_intersect(..., pairs = FALSE)
set_union(..., pairs = FALSE)
set_difference(..., pairs = FALSE)
Arguments
...
A list or a comma-separated list of vectors in the same class. If
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.
If vectors are given in ..., the set names will be named with the names
of the objects provided.
pairs
Returns the pairwise unions of the sets? Defaults to FALSE.
Value
A vector showing the desired operation of the sets. If pairs = TRUE, returns a list showing the pairwise operation of the sets.
# NOT RUN {library(metan)
(A <- letters[1:4])
(B <- letters[2:5])
(C <- letters[3:7])
set_union(A, B)
set_intersect(A, B, C)
set_difference(B, C)
# }# NOT RUN {# }