Learn R Programming

bit (version 4.6.0)

Classes and Methods for Fast Memory-Efficient Boolean Selections

Description

Provided are classes for boolean and skewed boolean vectors, fast boolean methods, fast unique and non-unique integer sorting, fast set operations on sorted and unsorted sets of integers, and foundations for ff (range index, compression, chunked processing).

Copy Link

Version

Install

install.packages('bit')

Monthly Downloads

751,786

Version

4.6.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Chirico

Last Published

March 6th, 2025

Functions in bit (4.6.0)

bit_in

bit %in%
.BITS

Initializing bit masks
as.which.which

Coercion to (positive) integer positions
bbatch

Balanced Batch sizes
physical.default

Physical and virtual attributes
bit_setops

bit set operations
booltype

Diagnosing boolean types
as.ri.ri

Coerce to ri
booltypes

Boolean types
bit-package

bit: Classes and methods for fast memory-efficient boolean selections
bit_rangediff

bit range difference
as.character.bitwhich

Coerce bitwhich to character
bit_sort_unique

bit sort unique
bit

Create empty bit vector
bit_sort

bit sort
bit_unidup

bit unique and duplicated
bitsort

Low-level sorting: bit sort
firstNA

Position of first NA
chunks

Function for chunked range index
get_length

Get C length of a vector
range_na

Get range and number of NAs
clone

Cloning ff and ram objects
range_nanozero

Remove zeros and get range and number of NAs
c.booltype

Concatenating booltype vectors
in.bitwhich

Check existence of integers in table
quicksort2

Low-level sorting: binary quicksort
chunk

Methods for chunked range index
quicksort3

Low-level sorting: threeway quicksort
is.na.bit

Test for NA in bit and bitwhich
getsetattr

Attribute setting by reference
length.bit

Getting and setting length of bit, bitwhich and ri objects
repeat.time

Adaptive timer
repfromto

Virtual recycling
str.bitwhich

Str method for bitwhich
rev.booltype

Reversing bit and bitwhich vectors
reverse_vector

Reverse atomic vector
still.identical

Test for C-level identity of two atomic vectors
is.booltype

Testing for boolean types
merge_rev

Fast functions for sorted sets of integer
intrle

Hybrid Index, C-coded utilities
maxindex.default

Get maxindex (length of boolean vector) and poslength (number of 'selected' elements)
symdiff

Symmetric set complement
bitwhich

Create bitwhich vector (skewed boolean)
str.bit

Str method for bit
xor.default

Boolean operators and functions
ri

Range index
rlepack

Hybrid Index, rle-pack utilities
vecseq

Vectorized Sequences
copy_vector

Copy atomic R vector
bitwhich_representation

Diagnose representation of bitwhich
unattr

Attribute removal
countsort

Low-level sorting: counting sort
print.bitwhich

Print method for bitwhich
print.bit

Print method for bit
range_sortna

Prepare for sorting and get range, number of NAs and unsortedness
rep.booltype

Replicating bit and bitwhich vectors
Sorting

Generics for in-RAM sorting and ordering
as.booltype.default

Coerce to booltype (generic)
as.character.bit

Coerce bit to character
as.bit.NULL

Coercing to bit
Metadata

Generics related to cache access
CoercionToStandard

Coercion from bit, bitwhich, which and ri to logical, integer, double
Summaries

Summaries of boolean vectors
as.bitwhich.NULL

Coercing to bitwhich
Extract

Extract or replace part of an boolean vector