Learn R Programming

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