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
  }
}
Rdatatable/data.table documentation built on July 13, 2024, 6:15 p.m.