powered by
Creates a matrix of dummy responses from a factor. Needed in some multivariate analyses.
dummy(f, simplify = TRUE)
vector (internally transformed into factor).
logical indicating if the last column of the response matrix should be removed (to avoid model overfitting).
# NOT RUN { fac <- gl(3,5,labels=LETTERS[1:3]) dummy(fac) # }
Run the code above in your browser using DataLab