Martin Batholdy wrote: > thanks! > > > > Now I have one more question; > > How can I do the reverse? > when %in% is == (for two vectors of different lengths); what is the equivalent to != ? > a %in% b returns a logical vector, so !a %in% b returns its negation. See order of precedence in ?Syntax.