intersectN: instersect N

Description Usage Arguments Value See Also Examples

Description

Recursivly intersects a list of vectors. Takes 0 to N vectors. The default behavior for a length of 0 is to return c(), i.e. NULL. intersectN(a,b,c) ~ Reduce(intersect,list(a,b,c))

Usage

1

Arguments

...

a variable number of conses to be intersected

Value

a vector containing the intersecting values.

See Also

unionNintersect

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.