Skip to contents

A simple extension of %in%.

Usage

x %allin% vector

Arguments

x

Numeric or character vector.

vector

Numeric or character vector.

Value

TRUE or FALSE.

Examples

1:2 %allin% 1:3  # TRUE
#> [1] TRUE
3:4 %allin% 1:3  # FALSE
#> [1] FALSE