Learn R Programming

bit (version 4.5.0.1)

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)

Value

logical vector

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

See Also

Examples

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

Run the code above in your browser using DataLab