powered by
Determines whether one vector contains all the elements of another.
is.subset(x, y)
vector.
A logical of length 1.
Determines whether or not every element of x is also found in y. Returns TRUE if so, and FALSE if not.
x
y
TRUE
FALSE
setmatch.
setmatch
# NOT RUN { is.subset(1:2, 1:3) is.subset(1:2, 2:3) # }
Run the code above in your browser using DataLab