not_in: Auxiliary function for membership

View source: R/not_in.R

not_inR Documentation

Auxiliary function for membership

Description

A fast check if one or more values are outside a set.

Usage

not_in(values, set_collection)

Arguments

values

one or more values

set_collection

a collection of values

Value

TRUE if not within or FALSE otherwise

References

https://www.eurofound.europa.eu/system/files/2022-04/introduction-to-the-convergeu-package-0.6.4-tutorial-v2-apr2022.pdf

Examples


val<-c(1,2,3,5)
mycol<-c(7,8)
not_in(val,mycol)

val1<-c(1,2,3,5)
mycol1<-c(3,5)
not_in(val1,mycol1)

val2<-c("FR", "IT", "LU")
mycol2<-c("FR", "ES")
not_in(val2,mycol2)


convergEU documentation built on May 29, 2024, 11:15 a.m.