search for: condnew

Displaying 1 result from an estimated 1 matches for "condnew".

Did you mean: con_new
2010 Nov 29
1
cross tabulate variables by subject id
...794 150 Disapprove 86 570 So for my case, I need something like: Choice AC AD 0 1 0 ... 1 Where "..." would be the sum of subjects who answered 0 or 1 to AC and/or AD respectively. I can get the first step by making an extra variable: dat1$condnew <- paste(dat1$cond1,dat1$cond2,sep="") although I am sure there are more elegant ways, and especially, I am stumped how to fill in the cells of the table. Thanks, Marianne -- Marianne Promberger PhD, King's College London http://promberger.info R version 2.12.0 (2010-10-15) Ub...