vbin {doofa}R Documentation

vectorized bin function

Description

vectorized bin function

Usage

vbin(x)

Arguments

x

a vector of length m with positive integers less than or equal to m

Value

a binary matrix

Examples

vbin(c(3,1,2));

[Package doofa version 1.0 Index]