R/issuperset.R
sets_issuperset.Rd
set_issuperset checks if all elements of y are in x. This function is similar to Python's set.issuperset() method.
set_issuperset
y
x
set.issuperset()
sets_issuperset(x, y)
A vector.
Another vector to compare with.
TRUE if x is a superset of y, otherwise FALSE.
TRUE
FALSE
Python set.issuperset() documentation
sets_issuperset(c(1, 2, 3), c(2, 3)) #> [1] TRUE