R/is_in.R

Defines functions `%is_not_in%` `%is_in%`

`%is_in%` <- function(snp, dt) {
  # !(dt[.(snp), mult = "first", nomatch = 0L, .N] == 0)
  !(dt[snp, mult = "first", nomatch = NULL, .N] == 0L)
}

`%is_not_in%` <- function(snp, dt) {
  # !(dt[.(snp), mult = "first", nomatch = 0L, .N] == 0)
  dt[snp, mult = "first", nomatch = NULL, .N] == 0L
}
maialab/daeqtlr documentation built on May 18, 2022, 6:53 a.m.