pad_logical_vec: Pad a logical vector so that its length is a multiple of the...

Description Usage Arguments Value

View source: R/01-bit-pad.R

Description

Pad a logical vector so that its length is a multiple of the given value

Usage

1
2
pad_logical_vec(logical_vec, multiple = 8L, pad = c("left", "right"),
  value = FALSE)

Arguments

logical_vec

vector of logical values

multiple

vector length will be padded to be a multiple of this value. default: 8

pad

place padding bits on the left or right. default: left

value

value to pad with. TRUE or FALSE. default: FALSE

Value

padded logical vector


coolbutuseless/minitypes documentation built on May 27, 2019, 9:55 a.m.