is_subset: Determine whether the first vector is a subset of the second...

View source: R/is_subset.R

is_subsetR Documentation

Determine whether the first vector is a subset of the second vector

Description

Determine whether the first vector is a subset of the second vector

Usage

is_subset(x, y)

Arguments

x

the first vector

y

the second vector

Value

TRUE if x is a subset of y, or FALSE otherwise. x is considered a subset of y if all elements of x are also in y, i.e., if setdiff(x, y) is a vector of length 0.

Author(s)

Michal Burda


nuggets documentation built on April 3, 2025, 8:07 p.m.