powered by
converts a single categorical variable into indicator variables
imat(x, allcat = TRUE)
A factor variable.
Whether or not to keep all categories or leave the last one out.
matrix
# NOT RUN { require(MASS) imat(housing$Type) # }
Run the code above in your browser using DataLab