Learn R Programming

usefun (version 0.5.2)

outersect: Outersect

Description

Performs set outersection on two vectors. The opposite operation from intersect!

Usage

outersect(x, y)

Value

a vector of the non-common elements of x and y.

Arguments

x, y

vectors

See Also

Examples

Run this code
x = 1:10
y = 2:11

# c(1,11)
outersect(x,y)

Run the code above in your browser using DataLab