Learn R Programming

ribiosUtils (version 1.7.7)

rsetdiff: Reverse setdiff

Description

reverse setdiff, i.e. rsetdiff(x,y) equals setdiff(y,x)

Usage

rsetdiff(x, y)

Value

Similar to setdiff, but with elements in y but not in x

Arguments

x

a vector

y

another vector

Author

Jitao David Zhang

Examples

Run this code

testVec1 <- LETTERS[3:6]
testVec2 <- LETTERS[5:7]
rsetdiff(testVec1, testVec2)

Run the code above in your browser using DataLab