int_to_n_bits: Convert a vector of integers to a vector of strings of n...

Description Usage Arguments Value

Description

Convert a vector of integers to a vector of strings of n binary digits

Usage

1
int_to_n_bits(xs, n = 16, start = 1)

Arguments

xs

a vector of integers

n

number of the highest bit. Defaults to 16.

start

number of the lowest bit. Defaults to 1, so all bits up to the nth are selected.

Value

a character vector of binary strings


tjmahr/adventofcode17 documentation built on May 30, 2019, 2:29 p.m.