[R] Combining factors

2006-11-10 Thread Rainer M Krug
Hi I know this is a basic question and I know I have done it before but I can't find the answer any more. I have a data set, say: F1, F2, Value F1 and F2 are Factors. I would like to plot plot(TheCombinationOf(F1, F2), Value) I remember there was a function for TheCombinationOf() but I

Re: [R] Combining factors

2006-11-10 Thread Rainer M Krug
Peter Dalgaard wrote: Rainer M Krug [EMAIL PROTECTED] writes: Hi I know this is a basic question and I know I have done it before but I can't find the answer any more. I have a data set, say: F1, F2, Value F1 and F2 are Factors. I would like to plot plot(TheCombinationOf(F1, F2),

Re: [R] Combining factors

2006-11-10 Thread Peter Dalgaard
Rainer M Krug [EMAIL PROTECTED] writes: Hi I know this is a basic question and I know I have done it before but I can't find the answer any more. I have a data set, say: F1, F2, Value F1 and F2 are Factors. I would like to plot plot(TheCombinationOf(F1, F2), Value) I

[R] Combining Factors in model.matrix

2004-01-21 Thread paul . boutros
Hello, I want to be able to create a design matrix with two factors. For instance, if I have: t1 - factor(c(1,1,2,2)); t2 - factor(c(1,2,1,2)); design - model.matrix(~ -1 + (t1+t2)); design; t11 t12 t22 1 1 0 0 2 1 0 1 3 0 1 0 4 0 1 1 But the design matrix I want