is_in: Checks whether all elements of one variable are in another

Description Usage Arguments Value Examples

View source: R/predicates.R

Description

Checks whether all elements of one variable are in another

Usage

1
is_in(x, y)

Arguments

x

(any) The object with elements to test

y

(any) The object with elements to test against

Value

TRUE if all elements in x are in y, FALSE otherwise

Examples

1
2
3
4
5
is_in("a", letters)
is_in(c("a", "b", "c"), letters)

is_in(1, LETTERS)
is_in(1:2, LETTERS)

msgr documentation built on Dec. 16, 2019, 5:41 p.m.

Related to is_in in msgr...