in.bitwhich {bit} | R Documentation |
If the table is sorted, this can be much faster than %in%
in.bitwhich(x, table, is.unsorted = NULL)
x |
a vector of integer |
table |
a |
is.unsorted |
logical telling the function whether the table is (un)sorted. With the defautl |
logical vector
x <- bitwhich(100)
x[3] <- TRUE
in.bitwhich(c(NA,2,3), x)