Learn R Programming

⚠️There's a newer version (4.6.0) of this package.Take me there.

bit (version 4.0.5)

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

954,322

Version

4.0.5

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jens Oehlschl�gel

Last Published

November 15th, 2022

Functions in bit (4.0.5)

as.bit.NULL

Coercing to bit
as.bitwhich.NULL

Coercing to bitwhich
as.character.bit

Coerce bit to character
bit-package

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

Generics related to cache access
Sorting

Generics for in-RAM sorting and ordering
Summaries

Summaries of boolean vectors
as.character.bitwhich

Coerce bitwhich to character
booltype

Diagnosing boolean types
bit

Create empty bit vector
physical.default

Physical and virtual attributes
bit_in

bit %in%
as.booltype.default

Coerce to booltype (generic)
as.ri.ri

Coerce to ri
bit_rangediff

bit range difference
bitwhich

Create bitwhich vector (skewed boolean)
bitwhich_representation

Diagnose representation of bitwhich
.BITS

Initializing bit masks
bit_sort

bit sort
booltypes

Boolean types
firstNA

Position of first NA
bit_sort_unique

bit sort unique
as.which.which

Coercion to (positive) integer positions
get_length

Get C length of a vector
length.bit

Getting and setting length of bit, bitwhich and ri objects
bit_setops

bit set operations
intrle

Hybrid Index, C-coded utilities
is.booltype

Testing for boolean types
bit_unidup

bit unique and duplicated
bbatch

Balanced Batch sizes
maxindex.default

Get maxindex (length of boolean vector) and poslength (number of 'selected' elements)
c.booltype

Concatenating booltype vectors
quicksort2

Low-level sorting: binary quicksort
chunk

Methods for chunked range index
countsort

Low-level sorting: counting sort
copy_vector

Copy atomic R vector
quicksort3

Low-level sorting: threeway quicksort
print.bit

Print method for bit
still.identical

Test for C-level identity of two atomic vectors
getsetattr

Attribute setting by reference
merge_rev

Fast functions for sorted sets of integer
chunks

Function for chunked range index
print.bitwhich

Print method for bitwhich
str.bit

Str method for bit
bitsort

Low-level sorting: bit sort
rev.booltype

Reversing bit and bitwhich vectors
range_na

Get range and number of NAs
ri

Range index
clone

Cloning ff and ram objects
is.na.bit

Test for NA in bit and bitwhich
rlepack

Hybrid Index, rle-pack utilities
range_sortna

Prepare for sorting and get range, number of NAs and unsortedness
reverse_vector

Reverse atomic vector
xor.default

Boolean operators and functions
in.bitwhich

Check existence of integers in table
rep.booltype

Replicating bit and bitwhich vectors
unattr

Attribute removal
vecseq

Vectorized Sequences
repeat.time

Adaptive timer
repfromto

Virtual recycling
range_nanozero

Remove zeros and get range and number of NAs
str.bitwhich

Str method for bitwhich
symdiff

Symmetric set complement
CoercionToStandard

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

Extract or replace part of an boolean vector