Find the Intersection of Multiple Sets

DESCRIPTION:

Returns the common values of the specified data sets.

USAGE:

intersect(x, y) 

REQUIRED ARGUMENTS:

x, y
vectors or bdVectors of data.

VALUE:

a data set of elements that appear in both x and y.

SEE ALSO:

, , , .

EXAMPLES:

x <- c(2, 3, 4) 
y <- c(3, 4, 5) 
intersect(x, y) 
# Produces:
# [1] 3 4