> matrix(as.numeric(factor(c(T,F,F,T))), 2,2) No, this produces a matrix with numeric values, not categorical values.
______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html