Learn R Programming

bit (version 4.5.0)

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)

Value

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

Arguments

length

length in bits

See Also

booltype, bitwhich, logical

Examples

Run this code
bit(12)
!bit(12)
str(bit(128))

Run the code above in your browser using DataLab