50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


doofa (version 1.0)

vbin: vectorized bin function

Description

vectorized bin function

Usage

vbin(x)

Value

a binary matrix

Arguments

x

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

Examples

Run this code
vbin(c(3,1,2));

Run the code above in your browser using DataLab