crossFactors {s20x} | R Documentation |
Computes a factor that has a level for each combination of the factors "fac1" and "fac2".
crossFactors(fac1,fac2)
fac1 |
the name of the first factor. |
fac2 |
the name of the second factor. |
Returns a vector containing the factor which represents the interaction of the given factors.
"factor".
## arousal data: data(arousal.df) attach(arousal.df) gender.picture<-factor(crossFactors(gender,picture)) gender.picture detach(arousal.df)