Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

in.bitwhich

Check existence of integers in table


Description

If the table is sorted, this can be much faster than %in%

Usage

in.bitwhich(x, table, is.unsorted = NULL)

Arguments

x

a vector of integer

table

a bitwhich object or a vector of integer

is.unsorted

logical telling the function whether the table is (un)sorted. With the defautl NULL FALSE is assumed for bitwhich tables, otherwise TRUE

Value

logical vector

See Also

Examples

x <- bitwhich(100)
x[3] <- TRUE
in.bitwhich(c(NA,2,3), x)

bit

Classes and Methods for Fast Memory-Efficient Boolean Selections

v4.0.4
GPL-2 | GPL-3
Authors
Jens Oehlschlägel [aut, cre], Brian Ripley [ctb]
Initial release
2020-08-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.