[R] Turn categorical array into matrix with dummy variables
xuan.zhao at sentrana.com
Fri Jul 27 19:32:54 CEST 2012
I want to turn a categorical array (array with factors) into a matrix with
dummy variables. like array=c(a,a,b,b,b) should be turned into:
Do you know any way of doing this?
View this message in context: http://r.789695.n4.nabble.com/Turn-categorical-array-into-matrix-with-dummy-variables-tp4638134.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help