Yeah, and %w/o% seems to have reinvented setdiff(). =) -Ken
On 8/5/10 10:53 AM, "David Winsemius" <[email protected]> wrote: > The examples in the help page for "%in%" (shared by "match") has the > definition of a "%w/o%" binary operator. > > "%w/o%" <- function(x,y) x[!x %in% y] #-- x without y > since: > "%in%" <- function(x, table) match(x, table, nomatch = 0) > 0 > It appears that you have just re-invented the without-wheel. -- Ken Williams Sr. Research Scientist Thomson Reuters Phone: 651-848-7712 [email protected] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

