Bit vectors are a boolean type wihout NA that requires by factor 32 less
RAM than logical().
For details on usage see vignette("bit-usage") and for details on
performance see vignette("bit-performance").
bit(length = 0L)bit returns a vector of integer sufficiently long to store 'length' bits
bit(12)
#> bit length=12 occupying only 1 int32
#> 1 2 3 4 5 6 7 8 9 10 11 12
#> FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
!bit(12)
#> bit length=12 occupying only 1 int32
#> 1 2 3 4 5 6 7 8 9 10 11 12
#> TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
str(bit(128))
#> bit [1:128] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0