bin {doofa}R Documentation

binary representation of x (an element from 1 to m) with m components

Description

binary representation of x (an element from 1 to m) with m components

Usage

bin(x, m)

Arguments

x

a positive integer less than or equal to m

m

number of components, a positive integer

Value

a vector with elements 1 and 0

Examples

bin(x = 2, m = 4);

[Package doofa version 1.0 Index]