Skip to contents

set_issuperset checks if all elements of y are in x. This function is similar to Python's set.issuperset() method.

Usage

sets_issuperset(x, y)

Arguments

x

A vector.

y

Another vector to compare with.

Value

TRUE if x is a superset of y, otherwise FALSE.

Examples

sets_issuperset(c(1, 2, 3), c(2, 3))
#> [1] TRUE