Package: bit 4.5.99

Michael Chirico

bit: Classes and Methods for Fast Memory-Efficient Boolean Selections

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).

Authors:Michael Chirico [aut, cre], Jens Oehlschlägel [aut], Brian Ripley [ctb]

bit_4.5.99.tar.gz
bit_4.5.99.zip(r-4.5)bit_4.5.99.zip(r-4.4)bit_4.5.99.zip(r-4.3)
bit_4.5.99.tgz(r-4.4-x86_64)bit_4.5.99.tgz(r-4.4-arm64)bit_4.5.99.tgz(r-4.3-x86_64)bit_4.5.99.tgz(r-4.3-arm64)
bit_4.5.99.tar.gz(r-4.5-noble)bit_4.5.99.tar.gz(r-4.4-noble)
bit_4.5.99.tgz(r-4.4-emscripten)bit_4.5.99.tgz(r-4.3-emscripten)
bit.pdf |bit.html
bit/json (API)
NEWS

# Install 'bit' in R:
install.packages('bit', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/bit/issues

On CRAN:

14.94 score 12 stars 3.1k packages 130 scripts 883k downloads 3 mentions 135 exports 0 dependencies

Last updated 2 months agofrom:c5ccbc0974. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 27 2024
R-4.5-win-x86_64OKNov 27 2024
R-4.5-linux-x86_64OKNov 27 2024
R-4.4-win-x86_64OKNov 27 2024
R-4.4-mac-x86_64OKNov 27 2024
R-4.4-mac-aarch64OKNov 27 2024
R-4.3-win-x86_64OKNov 27 2024
R-4.3-mac-x86_64OKNov 27 2024
R-4.3-mac-aarch64OKNov 27 2024

Exports:!=.booltype.BITS&.booltype==.booltype|.booltypeall.booltypeany.booltypeanyNA.booltypeas.bitas.bitwhichas.booltypeas.rias.whichbbatchbitbit_anyDuplicatedbit_donebit_duplicatedbit_inbit_initbit_intersectbit_rangediffbit_setdiffbit_setequalbit_sortbit_sort_uniquebit_sumDuplicatedbit_symdiffbit_unionbit_uniquebitsortbitwhichbitwhich_representationbooltypebooltypesc.booltypechunkchunksclonecopy_vectorcountsortfirstNAget_lengthgetsetattrin.bitwhichintisascintisdescintrleis.bitis.bitwhichis.booltypeis.hiis.riis.sortedis.sorted<-is.whichkeyorderkeysortkeysortordermax.booltypemaxindexmerge_anyDuplicatedmerge_duplicatedmerge_firstmerge_firstinmerge_firstnotinmerge_inmerge_intersectmerge_lastmerge_lastinmerge_lastnotinmerge_matchmerge_notinmerge_rangediffmerge_rangeinmerge_rangenotinmerge_rangesectmerge_revmerge_setdiffmerge_setequalmerge_sumDuplicatedmerge_symdiffmerge_unionmerge_uniquemergeordermergesortmergesortordermin.booltypena.countna.count<-ntiesnties<-nuniquenunique<-nvalidphysicalphysical<-poslengthquickorderquicksortquicksort2quicksort3quicksortorderradixorderradixsortradixsortorderramorderramsortramsortorderrange_narange_nanozerorange_sortnarange.booltyperepeat.timerepfromtorepfromto<-reverse_vectorrirlepackrleunpacksetattrsetattributesshellordershellsortshellsortorderstill.identicalsum.booltypesummary.booltypesymdiffunattrvecseqvirtualvirtual<-xorxor.booltype

Dependencies:

Demo of the bit package

Rendered frombit-demo.Rmdusingknitr::rmarkdownon Nov 27 2024.

Last update: 2024-10-28
Started: 2020-04-12

Performance of the bit package

Rendered frombit-performance.Rmdusingknitr::rmarkdownon Nov 27 2024.

Last update: 2024-10-28
Started: 2020-04-12

Usage of the bit package

Rendered frombit-usage.Rmdusingknitr::rmarkdownon Nov 27 2024.

Last update: 2024-10-28
Started: 2020-04-12

Readme and manuals

Help Manual

Help pageTopics
bit: Classes and methods for fast memory-efficient boolean selectionsbit-package
Initializing bit masks.BITS bit_done bit_init
Coercing to bitas.bit as.bit.bit as.bit.bitwhich as.bit.double as.bit.integer as.bit.logical as.bit.NULL as.bit.ri as.bit.which
Coercing to bitwhichas.bitwhich as.bitwhich.bit as.bitwhich.bitwhich as.bitwhich.double as.bitwhich.integer as.bitwhich.logical as.bitwhich.NULL as.bitwhich.ri as.bitwhich.which
Coerce to booltype (generic)as.booltype as.booltype.default
Coerce bit to characteras.character.bit
Coerce bitwhich to characteras.character.bitwhich
Coerce to rias.ri as.ri.default as.ri.ri
Coercion to (positive) integer positionsas.which as.which.bit as.which.bitwhich as.which.integer as.which.logical as.which.NULL as.which.numeric as.which.ri as.which.which
Balanced Batch sizesbbatch
Create empty bit vectorbit
bit %in%bit_in
bit range differencebit_rangediff
bit set operationsbit_intersect bit_setdiff bit_setequal bit_setops bit_symdiff bit_union
bit sortbit_sort
bit sort uniquebit_sort_unique
bit unique and duplicatedbit_anyDuplicated bit_duplicated bit_sumDuplicated bit_unidup bit_unique
Low-level sorting: bit sortbitsort
Create bitwhich vector (skewed boolean)bitwhich
Diagnose representation of bitwhichbitwhich_representation
Diagnosing boolean typesbooltype
Boolean typesbooltypes
Concatenating booltype vectorsc.bit c.bitwhich c.booltype
Methods for chunked range indexchunk chunk.default
Function for chunked range indexchunks
Cloning ff and ram objectsclone clone.default
Coercion from bit, bitwhich, which and ri to logical, integer, doubleas.double.bit as.double.bitwhich as.double.ri as.integer.bit as.integer.bitwhich as.integer.ri as.logical.bit as.logical.bitwhich as.logical.ri as.logical.which CoercionToStandard
Copy atomic R vectorcopy_vector
Low-level sorting: counting sortcountsort
Extract or replace part of an boolean vectorExtract [.bit [.bitwhich [<-.bit [<-.bitwhich [[.bit [[.bitwhich [[<-.bit [[<-.bitwhich
Position of first NAfirstNA
Get C length of a vectorget_length
Attribute setting by referencegetsetattr setattr setattributes
Check existence of integers in tablein.bitwhich
Hybrid Index, C-coded utilitiesintisasc intisdesc intrle
Testing for boolean typesis.bit is.bitwhich is.booltype is.hi is.ri is.which
Test for NA in bit and bitwhichis.na.bit is.na.bitwhich
Getting and setting length of bit, bitwhich and ri objectslength.bit length.bitwhich length.ri length<-.bit length<-.bitwhich
Get maxindex (length of boolean vector) and poslength (number of 'selected' elements)maxindex maxindex.bit maxindex.bitwhich maxindex.default maxindex.logical maxindex.ri maxindex.which poslength poslength.bit poslength.bitwhich poslength.default poslength.logical poslength.ri poslength.which
Fast functions for sorted sets of integermerge_anyDuplicated merge_duplicated merge_first merge_firstin merge_firstnotin merge_in merge_intersect merge_last merge_lastin merge_lastnotin merge_match merge_notin merge_rangediff merge_rangein merge_rangenotin merge_rangesect merge_rev merge_setdiff merge_setequal merge_sumDuplicated merge_symdiff merge_union merge_unique
Generics related to cache accessis.sorted is.sorted<- Metadata na.count na.count<- nties nties<- nunique nunique<- nvalid
Physical and virtual attributesphysical physical.default physical<- physical<-.default PhysVirt print.physical print.virtual virtual virtual.default virtual<- virtual<-.default
Print method for bitprint.bit
Print method for bitwhichprint.bitwhich
Low-level sorting: binary quicksortquicksort2
Low-level sorting: threeway quicksortquicksort3
Get range and number of NAsrange_na
Remove zeros and get range and number of NAsrange_nanozero
Prepare for sorting and get range, number of NAs and unsortednessrange_sortna
Replicating bit and bitwhich vectorsrep.bit rep.bitwhich rep.booltype
Adaptive timerrepeat.time
Virtual recyclingrepfromto repfromto<-
Reversing bit and bitwhich vectorsrev.bit rev.bitwhich rev.booltype
Reverse atomic vectorreverse_vector
Range indexprint.ri ri
Hybrid Index, rle-pack utilitiesanyDuplicated.rlepack rev.rlepack rlepack rlepack.integer rleunpack rleunpack.rlepack unique.rlepack
Generics for in-RAM sorting and orderingkeyorder keysort keysortorder mergeorder mergesort mergesortorder quickorder quicksort quicksortorder radixorder radixsort radixsortorder ramorder ramsort ramsortorder shellorder shellsort shellsortorder Sorting
Test for C-level identity of two atomic vectorsstill.identical
Str method for bitstr.bit
Str method for bitwhichstr.bitwhich
Summaries of boolean vectorsall.bit all.bitwhich all.booltype all.ri all.which any.bit any.bitwhich any.booltype any.ri any.which anyNA.bit anyNA.bitwhich anyNA.booltype anyNA.ri anyNA.which max.bit max.bitwhich max.booltype max.ri max.which min.bit min.bitwhich min.booltype min.ri min.which range.bit range.bitwhich range.booltype range.ri range.which sum.bit sum.bitwhich sum.booltype sum.ri sum.which Summaries summary.bit summary.bitwhich summary.booltype summary.ri summary.which
Symmetric set complementsymdiff
Attribute removalunattr
Vectorized Sequencesvecseq
Boolean operators and functions!.bit !.bitwhich !=.bit !=.bitwhich !=.booltype &.bit &.bitwhich &.booltype ==.bit ==.bitwhich ==.booltype xor xor.bit xor.bitwhich xor.booltype xor.default xor.logical |.bit |.bitwhich |.booltype