`%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
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.