convert_int_to_logical_vector: convert_int_to_logical_vector

Description Usage Arguments Value Examples

Description

Convert a native R integer value into a binary number materialized by an R logical vector.
See modular binary number for a definition of binary number.
See convert_any_to_logical_vector for the type generic equivalent function.
Open question: should this function provide support for vectors of integers? If yes, what should it return? A matrix?

Usage

1

Arguments

i

A natural number (integer)

dim

(conditional) The size (length) of the logical vector (integer)

Value

The logical vector (logical vector)

Examples

1
2
# R function style:
convert_int_to_logical_vector(137, 9);

daviddoret/haricot documentation built on May 21, 2019, 1:42 a.m.