Find the Union of Multiple Sets

DESCRIPTION:

Create a combined vector or bdVector of multiple data sets.

USAGE:

union(x, y) 

REQUIRED ARGUMENTS:

x, y
vectors or bdVectors.

VALUE:

a data set containing values which appear in either one of the original data sets. Values which appear in both of the original data sets only appear once in the resultant data set.

SEE ALSO:

, , , .

EXAMPLES:

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