bin: binary representation of x (an element from 1 to m) with m...

View source: R/doofa.R

binR 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);

doofa documentation built on June 22, 2024, 7:39 p.m.

Related to bin in doofa...