is_subset | R Documentation |
Check if vector x
is sub- or super-set of vector y
.
is_subset(x, y, strict = FALSE)
is_superset(x, y, strict = FALSE)
x |
[ |
y |
[ |
strict |
[ |
A single logical value.
x = c(1, 2, 3, 6, 7, 8)
y = 1:10
is_subset(x, y)
is_subset(y, x)
is_superset(x, y)
is_superset(y, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.