Package: bit 4.5.99
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:
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')) |
Bug tracker:https://github.com/r-lib/bit/issues
Last updated 2 months agofrom:c5ccbc0974. Checks:OK: 9. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 27 2024 |
R-4.5-win-x86_64 | OK | Nov 27 2024 |
R-4.5-linux-x86_64 | OK | Nov 27 2024 |
R-4.4-win-x86_64 | OK | Nov 27 2024 |
R-4.4-mac-x86_64 | OK | Nov 27 2024 |
R-4.4-mac-aarch64 | OK | Nov 27 2024 |
R-4.3-win-x86_64 | OK | Nov 27 2024 |
R-4.3-mac-x86_64 | OK | Nov 27 2024 |
R-4.3-mac-aarch64 | OK | Nov 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.Rmd
usingknitr::rmarkdown
on Nov 27 2024.Last update: 2024-10-28
Started: 2020-04-12
Performance of the bit package
Rendered frombit-performance.Rmd
usingknitr::rmarkdown
on Nov 27 2024.Last update: 2024-10-28
Started: 2020-04-12
Usage of the bit package
Rendered frombit-usage.Rmd
usingknitr::rmarkdown
on Nov 27 2024.Last update: 2024-10-28
Started: 2020-04-12
Readme and manuals
Help Manual
Help page | Topics |
---|---|
bit: Classes and methods for fast memory-efficient boolean selections | bit-package |
Initializing bit masks | .BITS bit_done bit_init |
Coercing to bit | as.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 bitwhich | as.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 character | as.character.bit |
Coerce bitwhich to character | as.character.bitwhich |
Coerce to ri | as.ri as.ri.default as.ri.ri |
Coercion to (positive) integer positions | as.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 sizes | bbatch |
Create empty bit vector | bit |
bit %in% | bit_in |
bit range difference | bit_rangediff |
bit set operations | bit_intersect bit_setdiff bit_setequal bit_setops bit_symdiff bit_union |
bit sort | bit_sort |
bit sort unique | bit_sort_unique |
bit unique and duplicated | bit_anyDuplicated bit_duplicated bit_sumDuplicated bit_unidup bit_unique |
Low-level sorting: bit sort | bitsort |
Create bitwhich vector (skewed boolean) | bitwhich |
Diagnose representation of bitwhich | bitwhich_representation |
Diagnosing boolean types | booltype |
Boolean types | booltypes |
Concatenating booltype vectors | c.bit c.bitwhich c.booltype |
Methods for chunked range index | chunk chunk.default |
Function for chunked range index | chunks |
Cloning ff and ram objects | clone clone.default |
Coercion from bit, bitwhich, which and ri to logical, integer, double | as.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 vector | copy_vector |
Low-level sorting: counting sort | countsort |
Extract or replace part of an boolean vector | Extract [.bit [.bitwhich [<-.bit [<-.bitwhich [[.bit [[.bitwhich [[<-.bit [[<-.bitwhich |
Position of first NA | firstNA |
Get C length of a vector | get_length |
Attribute setting by reference | getsetattr setattr setattributes |
Check existence of integers in table | in.bitwhich |
Hybrid Index, C-coded utilities | intisasc intisdesc intrle |
Testing for boolean types | is.bit is.bitwhich is.booltype is.hi is.ri is.which |
Test for NA in bit and bitwhich | is.na.bit is.na.bitwhich |
Getting and setting length of bit, bitwhich and ri objects | length.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 integer | merge_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 access | is.sorted is.sorted<- Metadata na.count na.count<- nties nties<- nunique nunique<- nvalid |
Physical and virtual attributes | physical physical.default physical<- physical<-.default PhysVirt print.physical print.virtual virtual virtual.default virtual<- virtual<-.default |
Print method for bit | print.bit |
Print method for bitwhich | print.bitwhich |
Low-level sorting: binary quicksort | quicksort2 |
Low-level sorting: threeway quicksort | quicksort3 |
Get range and number of NAs | range_na |
Remove zeros and get range and number of NAs | range_nanozero |
Prepare for sorting and get range, number of NAs and unsortedness | range_sortna |
Replicating bit and bitwhich vectors | rep.bit rep.bitwhich rep.booltype |
Adaptive timer | repeat.time |
Virtual recycling | repfromto repfromto<- |
Reversing bit and bitwhich vectors | rev.bit rev.bitwhich rev.booltype |
Reverse atomic vector | reverse_vector |
Range index | print.ri ri |
Hybrid Index, rle-pack utilities | anyDuplicated.rlepack rev.rlepack rlepack rlepack.integer rleunpack rleunpack.rlepack unique.rlepack |
Generics for in-RAM sorting and ordering | keyorder 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 vectors | still.identical |
Str method for bit | str.bit |
Str method for bitwhich | str.bitwhich |
Summaries of boolean vectors | all.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 complement | symdiff |
Attribute removal | unattr |
Vectorized Sequences | vecseq |
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 |