R/notin.R

"%notin%" = function(x, table) {
  if (is.character(x) && is.character(table)) {
    .Call(Cnotchin, x, table)
  } else {
    match(x, table, nomatch = 0L) == 0L
  }
}

Try the data.table package in your browser

Any scripts or data that you put into this service are public.

data.table documentation built on May 29, 2024, 6:06 a.m.