Amalgamate two or more factors.
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
.
join(...)
... |
Two or more factors or numeric vectors, or lists containing these kinds of component. |
Similar in effect to paste
, which it uses.
A single composite factor with levels made up of the distinct combinations of levels or values of the arguments which occur.
None.
:
, paste
, rjoin
,
direct.sum
within(data.frame(f = gl(2, 3)), { g <- gl(3,2,length(f)) fg <- join(f, g) }) ### f fg g ### 1 1 1:1 1 ### 2 1 1:1 1 ### 3 1 1:2 2 ### 4 2 2:2 2 ### 5 2 2:3 3 ### 6 2 2:3 3
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.