crossFactors {s20x}R Documentation

Crossed Factors

Description

Computes a factor that has a level for each combination of the factors "fac1" and "fac2".

Usage

crossFactors(fac1,fac2)

Arguments

fac1 the name of the first factor.
fac2 the name of the second factor.

Value

Returns a vector containing the factor which represents the interaction of the given factors.

See Also

"factor".

Examples

## arousal data:
data(arousal.df)
attach(arousal.df)
gender.picture<-factor(crossFactors(gender,picture))
gender.picture
detach(arousal.df)

[Package s20x version 3.1-3 Index]