lgl1: Bit-packed logical

Description Usage Arguments Value Examples

View source: R/lgl1.R

Description

Bit-packed logical

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
lgl1(x = raw(), extra_bits = 0L)

as_lgl1(x, ...)

## Default S3 method:
as_lgl1(x, ...)

## S3 method for class 'pkd_lgl1'
as_lgl1(x, ...)

## S3 method for class 'logical'
as_lgl1(x, ...)

new_pkd_lgl1(x)

Arguments

x

A raw() vector of bytes with each bit representing an individual logical value.

extra_bits

The number of bits from the last byte that should be considered part of the vector.

...

Unused

Value

A pkd_vctr of class pkd_lgl1

Examples

1
2
3
lgl1(0xff)
lgl1(0x80)
lgl1(c(0x01, 0xff), extra_bits = 1)

paleolimbot/pkd documentation built on Sept. 25, 2020, 12:58 a.m.