is.subset | R Documentation |
Determines whether one vector contains all the elements of another.
is.subset(x, y) x %subof% y
x |
vector. |
y |
vector. |
Determines whether or not every element of x
is also found in
y
. Returns TRUE
if so, and FALSE
if not.
A logical of length 1.
%subof%
: operator version
Robin Evans
setmatch
.
is.subset(1:2, 1:3) is.subset(1:2, 2:3) 1:2 %subof% 1:3 1:2 %subof% 2:3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.