KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This is really simple but I can't seem to locate it. I know R has a negated version of %in% that returns "not in." Obviously I could just use !(x %in% y) , but the language includes an already negated construct and I want to use it, goshdarnit. So what's the function? Searches as well as %nin% and %notin% all fail. Bonus internets to you if you benchmark your answer versus !(x %in% y) using the following sample data: x <- sample( sample(letters,5), 10^3, replace=TRUE) y <- sample( letters, 10^5, replace=TRUE)
Tags (comma-separated)
Save Edits
Cancel