indi {DiGGer} | R Documentation |
Form the indicator matrix of the supplied argument in vec order. The
matrix will have maxt
columns if supplied.
indi(vec1, maxt = NA)
vec1 |
A matrix or vector of integers. |
maxt |
The number of columns in the answer. |
indi(x)
produces a zeroed matrix with length(x)
rows and
1 in position i,x[i]
.
Neil Coombes