i wish to change a column of factor variable to multiple columns of
zero-ones
for example, my factor could be
ff=c('a','a','b','b','c','c')
then I want to have two columns (for three levels) that are
0 0
0 0
1 0
1 0
0 1
0 1
how can i do this fast?
[[alternative HTML version deleted]]
______________________________________________
[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
and provide commented, minimal, self-contained, reproducible code.