Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bit

Create empty bit vector


Description

Bit vectors are a boolean type wihout NA that requires by factor 32 less RAM than logical. For details on usage see the usage-vignette and for details on performance see performance-vignette

Usage

bit(length = 0L)

Arguments

length

length in bits

Value

bit returns a vector of integer sufficiently long to store 'length' bits

See Also

Examples

bit(12)
!bit(12)
str(bit(128))

bit

Classes and Methods for Fast Memory-Efficient Boolean Selections

v4.0.4
GPL-2 | GPL-3
Authors
Jens Oehlschlägel [aut, cre], Brian Ripley [ctb]
Initial release
2020-08-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.