Learn R Programming

bit (version 4.5.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

855,000

Version

4.5.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

September 20th, 2024

Functions in bit (4.5.0)

as.character.bit

Coerce bit to character
bit_rangediff

bit range difference
as.bitwhich.NULL

Coercing to bitwhich
as.character.bitwhich

Coerce bitwhich to character
as.which.which

Coercion to (positive) integer positions
bbatch

Balanced Batch sizes
Sorting

Generics for in-RAM sorting and ordering
as.ri.ri

Coerce to ri
getsetattr

Attribute setting by reference
chunk

Methods for chunked range index
print.bitwhich

Print method for bitwhich
bitwhich

Create bitwhich vector (skewed boolean)
in.bitwhich

Check existence of integers in table
bitwhich_representation

Diagnose representation of bitwhich
maxindex.default

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

Fast functions for sorted sets of integer
range_sortna

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

Replicating bit and bitwhich vectors
print.bit

Print method for bit
bit_unidup

bit unique and duplicated
str.bitwhich

Str method for bitwhich
bitsort

Low-level sorting: bit sort
symdiff

Symmetric set complement
bit_setops

bit set operations
intrle

Hybrid Index, C-coded utilities
Summaries

Summaries of boolean vectors
CoercionToStandard

Coercion from bit, bitwhich, which and ri to logical, integer, double
rev.booltype

Reversing bit and bitwhich vectors
Extract

Extract or replace part of an boolean vector
bit-package

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

Position of first NA
bit_in

bit %in%
is.booltype

Testing for boolean types
range_na

Get range and number of NAs
bit

Create empty bit vector
c.booltype

Concatenating booltype vectors
range_nanozero

Remove zeros and get range and number of NAs
ri

Range index
unattr

Attribute removal
bit_sort

bit sort
repeat.time

Adaptive timer
bit_sort_unique

bit sort unique
get_length

Get C length of a vector
booltype

Diagnosing boolean types
.BITS

Initializing bit masks
repfromto

Virtual recycling
copy_vector

Copy atomic R vector
countsort

Low-level sorting: counting sort
clone

Cloning ff and ram objects
xor.default

Boolean operators and functions
is.na.bit

Test for NA in bit and bitwhich
quicksort2

Low-level sorting: binary quicksort
booltypes

Boolean types
chunks

Function for chunked range index
length.bit

Getting and setting length of bit, bitwhich and ri objects
str.bit

Str method for bit
rlepack

Hybrid Index, rle-pack utilities
still.identical

Test for C-level identity of two atomic vectors
quicksort3

Low-level sorting: threeway quicksort
reverse_vector

Reverse atomic vector
vecseq

Vectorized Sequences
as.booltype.default

Coerce to booltype (generic)
Metadata

Generics related to cache access
physical.default

Physical and virtual attributes
as.bit.NULL

Coercing to bit