Find the Unique Values of a Set

DESCRIPTION:

Returns the elements of x that are not in y.

USAGE:

setdiff(x, y) 
x %w/o% y

REQUIRED ARGUMENTS:

x, y
vectors or bdVectors of values.

VALUE:

a data set of the elements of x that are not in y.

DETAILS:

%w/o% is a special operator that provides another way to invoke function setdiff. This operator was added for compatibility with R.

SEE ALSO:

, , , .

EXAMPLES:

x <- c(2, 3, 4) 
y <- c(3, 4, 5) 
setdiff(x, y) 
x %w/o% y
# Produces:
# [1] 2