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.
#> [1] TRUEis_subset(y, x)#> [1] FALSEis_superset(x, y)#> [1] FALSEis_superset(y, x)#> [1] TRUE