Provides the compliment to the base R %in%
operator. Included here instead of via import
due to stability issues with the source package, Hmsic
,
during original package development in October, 2017. Used under terms of
Hmisc
's
GPL-3 License.
x %nin% y
x | vector or |
---|---|
y | vector or |
x <- 2 y <- 2 z <- 3 x %in% y#> [1] TRUEx %nin% y#> [1] FALSEx %in% z#> [1] FALSEx %nin% z#> [1] TRUE