in.bitwhich: Check existence of integers in table

Description Usage Arguments Value See Also Examples

View source: R/bit.R

Description

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

Usage

1

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

%in%

Examples

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

bit documentation built on Aug. 4, 2020, 9:06 a.m.