filter_bitset: Filter a bitset

View source: R/bitset.R

filter_bitsetR Documentation

Filter a bitset

Description

This non-modifying function returns a new Bitset object of the same maximum size as the original but which only contains those values at the indices specified by the argument other. Indices in other may be specified either as a vector of integers or as another bitset. Please note that filtering by another bitset is not a "bitwise and" intersection, and will have the same behavior as providing an equivalent vector of integer indices.

Usage

filter_bitset(bitset, other)

Arguments

bitset

the Bitset to filter

other

the values to keep (may be a vector of intergers or another Bitset)


individual documentation built on July 15, 2022, 5:06 p.m.