powered by
Determines whether one vector contains all the elements of another.
is.subset(x, y)x %subof% y
x %subof% y
A logical of length 1.
vector.
%subof%: operator version
%subof%
Robin Evans
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
is.subset(1:2, 1:3) is.subset(1:2, 2:3) 1:2 %subof% 1:3 1:2 %subof% 2:3
Run the code above in your browser using DataLab