Learn R Programming

BBmisc (version 1.13)

isSuperset: Check superset relation on two vectors.

Description

Check superset relation on two vectors.

Usage

isSuperset(x, y, strict = FALSE)

Value

[logical(1)]

TRUE if each element of y is also contained in x, i. e., if y is a subset of x and FALSE otherwise.

Arguments

x

[vector]
Source vector.

y

[vector]
Vector of the same mode as x.

strict

[logical(1)]
Checks for strict/proper superset relation.