bit: Create empty bit vector

View source: R/bit.R

bitR Documentation

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

booltype, bitwhich, logical

Examples

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

bit documentation built on Sept. 20, 2024, 5:08 p.m.