R: Create empty bit vector

bit {bit} | R 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))

[Package bit version 4.0.4 Index]