bit: A Class for Vectors of 1-Bit Booleans
Version 1.1-13

True boolean datatype (no NAs), coercion from and to logicals, integers and integer subscripts; fast boolean operators and fast summary statistics. With 'bit' vectors you can store true binary booleans {FALSE,TRUE} at the expense of 1 bit only, on a 32 bit architecture this means factor 32 less RAM and ~ factor 32 more speed on boolean operations. Due to overhead of R calls, actual speed gain depends on the size of the vector: expect gains for vectors of size > 10000 elements. Even for one-time boolean operations it can pay-off to convert to bit, the pay-off is obvious, when such components are used more than once. Reading from and writing to bit is approximately as fast as accessing standard logicals - mostly due to R's time for memory allocation. The package allows to work with pre-allocated memory for return values by calling .Call() directly: when evaluating the speed of C-access with pre-allocated vector memory, coping from bit to logical requires only 70% of the time for copying from logical to logical; and copying from logical to bit comes at a performance penalty of 150%. the package now contains further classes for representing logical selections: 'bitwhich' for very skewed selections and 'ri' for selecting ranges of values for chunked processing. All three index classes can be used for subsetting 'ff' objects (ff-2.1-0 and higher).

Browse man pages Browse package API and functions Browse package files

AuthorJens Oehlschlgel <Jens.Oehlschlaegel@truecluster.com>
Date of publication2015-06-26 17:46:09
MaintainerJens Oehlschlgel <Jens.Oehlschlaegel@truecluster.com>
LicenseGPL-2
Version1.1-13
URL http://ff.r-forge.r-project.org/
Package repositoryView on R-Forge
InstallationInstall the latest version of this package by entering the following in R:
install.packages("bit", repos="http://R-Forge.R-project.org")

Man pages

as.bit: Coercing to bit
as.bitwhich: Coercing to bitwhich
as.logical.bit: Coercion from bit, bitwhich and ri to logical, integer,...
as.which: Coercion to (positive) integer positions
bbatch: Balanced Batch sizes
bit_init: Initializing bit masks
bit-package: A class for vectors of 1-bit booleans
bitwhich: A class for vectors representing asymetric selections
c.bit: Concatenating bit and bitwhich vectors
chunk: Chunked range index
clone: Cloning ff and ram objects
Extract: Extract or replace part of an bit vector
intrle: Hybrid Index, C-coded utilities
is.bit: Testing for bit, bitwhich and ri selection classes
is.sorted: Generics related to cache access
length.bit: Getting and setting length of bit, bitwhich and ri objects
LogicBit: Boolean operators and functions for class bit
physical: Physical and virtual attributes
ramsort: Generics for in-RAM sorting and ordering
regtest.bit: Regressiontests for bit
repeat.time: Adaptive timer
repfromto: Virtual recycling
ri: Range index
rlepack: Hybrid Index, rle-pack utilities
setattributes: Attribute setting by reference
Summary: Summaries of bit vectors
unattr: Attribute removal
vecseq: Vectorized Sequences

Functions

!.bit Man page
!.bitwhich Man page
!=.bit Man page
!=.bitwhich Man page
&.bit Man page
&.bitwhich Man page
.BITS Man page
==.bit Man page
==.bitwhich Man page
LogicBit Man page
R_bit_as_hi Source code
[.bit Man page
[<-.bit Man page
[[.bit Man page
[[<-.bit Man page
all.bit Man page Source code
all.bitwhich Man page Source code
all.ri Man page Source code
any.bit Man page Source code
any.bitwhich Man page Source code
any.ri Man page Source code
anyDuplicated.rlepack Man page Source code
as.bit Man page Source code
as.bit.bit Man page Source code
as.bit.bitwhich Man page Source code
as.bit.double Man page Source code
as.bit.integer Man page Source code
as.bit.logical Man page Source code
as.bit.ri Man page Source code
as.bit.which Man page Source code
as.bitwhich Man page Source code
as.bitwhich.bit Man page Source code
as.bitwhich.bitwhich Man page Source code
as.bitwhich.double Man page
as.bitwhich.integer Man page
as.bitwhich.logical Man page Source code
as.bitwhich.ri Man page Source code
as.bitwhich.which Man page Source code
as.double.bit Man page Source code
as.double.bitwhich Man page Source code
as.double.ri Man page Source code
as.integer.bit Man page Source code
as.integer.bitwhich Man page Source code
as.integer.ri Man page Source code
as.logical.bit Man page Source code
as.logical.bitwhich Man page Source code
as.logical.ri Man page Source code
as.which Man page Source code
as.which.bit Man page Source code
as.which.bitwhich Man page Source code
as.which.default Man page Source code
as.which.ri Man page Source code
bbatch Man page Source code
bit Man page Source code
bit-package Man page
bit_done Man page Source code
bit_init Man page Source code
bitwhich Man page Source code
c.bit Man page Source code
c.bitwhich Man page Source code
chunk Man page Source code
chunk.default Man page Source code
clone Man page Source code
clone.default Man page Source code
clone.list Man page Source code
intisasc Man page Source code
intisdesc Man page Source code
intrle Man page Source code
is.bit Man page Source code
is.bitwhich Man page Source code
is.ri Man page Source code
is.sorted Man page Source code
is.sorted<- Man page
keyorder Man page Source code
keysort Man page Source code
keysortorder Man page Source code
length.bit Man page Source code
length.bitwhich Man page Source code
length.ri Man page Source code
length<-.bit Man page
length<-.bitwhich Man page
max.bit Man page Source code
max.bitwhich Man page Source code
max.ri Man page Source code
mergeorder Man page Source code
mergesort Man page Source code
mergesortorder Man page Source code
min.bit Man page Source code
min.bitwhich Man page Source code
min.ri Man page Source code
na.count Man page Source code
na.count<- Man page
nties Man page Source code
nties<- Man page
nunique Man page Source code
nunique<- Man page
nvalid Man page Source code
onAttach Source code
onLoad Source code
onUnload Source code
physical Man page Source code
physical.default Man page Source code
physical<- Man page
physical<-.default Man page
print.bit Man page Source code
print.bitwhich Man page Source code
print.physical Man page Source code
print.ri Man page Source code
print.virtual Man page Source code
quickorder Man page Source code
quicksort Man page Source code
quicksortorder Man page Source code
radixorder Man page Source code
radixsort Man page Source code
radixsortorder Man page Source code
ramorder Man page Source code
ramsort Man page Source code
ramsortorder Man page Source code
range.bit Man page Source code
range.bitwhich Man page Source code
range.ri Man page Source code
regtest.bit Man page Source code
repeat.time Man page Source code
repfromto Man page Source code
repfromto<- Man page
rev.rlepack Man page Source code
ri Man page Source code
rlepack Man page Source code
rlepack.integer Man page Source code
rleunpack Man page Source code
rleunpack.rlepack Man page Source code
setattr Man page Source code
setattributes Man page Source code
shellorder Man page Source code
shellsort Man page Source code
shellsortorder Man page Source code
still.identical Man page Source code
sum.bit Man page Source code
sum.bitwhich Man page Source code
sum.ri Man page Source code
summary.bit Man page Source code
summary.bitwhich Man page Source code
summary.ri Man page Source code
unattr Man page Source code
unique.rlepack Man page Source code
vecseq Man page Source code
virtual Man page Source code
virtual.default Man page Source code
virtual<- Man page
virtual<-.default Man page
xor Man page Source code
xor.bit Man page
xor.bitwhich Man page
xor.default Man page Source code
|.bit Man page
|.bitwhich Man page

Files

DESCRIPTION
NAMESPACE
NEWS
R
R/attrutil.R
R/bit.R
R/chunkutil.R
R/clone.R
R/generics.R
R/rle.R
R/timeutil.R
R/zzz.R
exec
exec/make_rd.pl
exec/prebuild.sh
inst
inst/ANNOUNCEMENT-1.0.txt
inst/README_devel.txt
man
man/Extract.rd
man/LogicBit.rd
man/Summary.rd
man/as.bit.rd
man/as.bitwhich.rd
man/as.logical.bit.rd
man/as.which.rd
man/bbatch.rd
man/bit-package.rd
man/bit_init.rd
man/bitwhich.rd
man/c.bit.rd
man/chunk.rd
man/clone.rd
man/intrle.rd
man/is.bit.rd
man/is.sorted.rd
man/length.bit.rd
man/physical.rd
man/ramsort.rd
man/regtest.bit.rd
man/repeat.time.rd
man/repfromto.rd
man/ri.rd
man/rlepack.rd
man/setattributes.rd
man/unattr.rd
man/vecseq.rd
src
src/attrutil.c
src/bit.c
src/chunkutil.c
src/clone.c
src/rle.c
bit documentation built on May 21, 2017, 12:35 a.m.