binary: Convert decimal base number to binary base

Description Usage Arguments Value Note Author(s) Examples

View source: R/binary.R

Description

Convert decimal base number to binary base.

Usage

1
binary(x, dim)

Arguments

x

a number in decibal base.

dim

the number of digits, if missing the right number of digits is evaluated.

Value

binary

a vector representing the 'x' number in binary base.

dicotomy

the same as 'binary' but 'TRUE' and 'FALSE' instead of 1 and 0.

Note

the elements of 'binary' and 'dicotomy' are in reverse order.

Author(s)

Claudio Agostinelli

Examples

1
2
binary(2)
binary(10,dim=5)

wle documentation built on May 29, 2017, 11:48 a.m.

Related to binary in wle...