rjoin: Concatenate designs by rows.

Description Usage Arguments Details Value Side Effects See Also Examples

View source: R/conf.design.R

Description

Combine two or more designs with the same names into a single design by row concatenation.

Usage

1
rjoin(..., part.name="Part")

Arguments

...

Two or more designs with identical component names.

part.name

Name for an additional factor to identify the original components in the result.

Details

Almost the same as rbind, but an additional factor in the result separates the original components.

Value

A single design with the arguments stacked above each other (in a similar manner to rbind), together with an additional factor whose levels identify the original component designs, or parts.

Side Effects

None.

See Also

rbind

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
### A two replicate partially confounded factorial design.
d1 <- conf.design(c(A = 1, B = 1, C = 1), 2)
d2 <- conf.design(c(A = 0, B = 1, C = 1), 2)
dsn <- within(rjoin(d1, d2), {
   Blocks <- join(Part, Blocks)
   Part <- NULL
})
as.matrix(replications(~ .^2, dsn))
###          [,1]
### Blocks      4
### A           8
### B           8
### C           8
### Blocks:A    2
### Blocks:B    2
### Blocks:C    2
### A:B         4
### A:C         4
### B:C         4

Example output

         [,1]
Blocks      4
A           8
B           8
C           8
Blocks:A    2
Blocks:B    2
Blocks:C    2
A:B         4
A:C         4
B:C         4

conf.design documentation built on May 2, 2019, 4:02 p.m.