join {conf.design}R Documentation

Amalgamate two or more factors.

Description

Joins two or more factors together into a single composite factor defining the subclasses. In a model formula join(f1, f2, f3) is equivalent to f1:f2:f3.

Usage

join(...)

Arguments

... Two or more factors or numeric vectors, or objects of mode list containing these kinds of component.

Details

Similar in effect to paste(), which it uses.

Value

A single composite factor with levels made up of the distinct combinations of levels or values of the arguments which occur.

Side Effects

None.

See Also

paste, rjoin, direct.sum

Examples

 d1 <- conf.design(c(1,1,1), 2, treatment.names=LETTERS[1:3])
 d2 <- conf.design(c(0,1,1), 2, treatment.names=LETTERS[1:3])
 fd1d2 <- join(d1,d2)