powered by
! x %in% table
x %!in% table
function(x,y) ! x %in% y
match
1:10 %!in% c(1,3,5,9) sstr <- c("c","ab","B","bba","c",NA,"@","bla","a","Ba","%") sstr[sstr %!in% c(letters, LETTERS)]
Run the code above in your browser using DataLab