[R] "logical indexing, " [was] match() question or needle haystack problem for a data.frame

David Winsemius dw|n@em|u@ @end|ng |rom comc@@t@net
Sun Oct 28 17:58:28 CET 2018



> On Oct 25, 2018, at 11:28 PM, Knut Krueger <rhelp using krueger-family.de> wrote:
> 
> Am 25.10.18 um 16:13 schrieb peter dalgaard:
>> 
>> Yes: x[!(x$A %in% y$B),]
> 
> Ok thats in my opinion a little workaround
> why?:
> 
> There is an
> = and !=
> < and >
> 
> 
> means the opposite is available between terms.
> 
> why is there f.e no %!in%, %notin%  or !%in%
> 
> This would be more intuitive.

This illustrates a failure to read the obvious help page completely. The "Examples" section includes a definition of "%w/o%" which is exactly what was desired.

-- 
David.
> 
> Kind regards Knut
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.




More information about the R-help mailing list