Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Nice. I always find it breaks my concentration when I have to type something like !(x %in% y)... great tip. Commented Sep 21, 2011 at 23:01
  • 2
    I don't think dplyr can handle this, e.g., filter(df, foo %notin% c("a", "c", "e")) Commented Sep 17, 2015 at 22:13
  • 1
    It was just a comment! I was trying to use %noin% in a filter call and it didn't work, non-suprisingly. Commented Sep 18, 2015 at 18:51
  • @MattO'Brien, I posted an equivalent using anti_join below . . . Commented Jul 5, 2018 at 15:23