unionN: union N

Description Usage Arguments Value See Also Examples

Description

Recursivly tales the union of a list of vectors. Takes 0 to N vectors. The default behavior for a length of 0 is to return c(), i.e. NULL. unionN(a,b,c) ~ Reduce(union,list(a,b,c))

Usage

1

Arguments

...

a variable number of vectors to have their union taken

Value

a vector containing the union of the values.

See Also

intersectN union

Examples

1
2
3
4
5
6
7
8
intersectN()
# > NULL
intersectN(c(1,2,3))
# > 1 2 3 
intersectN(c(1,2,3),c(2,3,4))
# > 2 3
intersectN(c(1,2,3),c(2,3,4),c(3,4,5))
#> 3

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.