Description Usage Arguments Value Note See Also Examples
Methods to extract a single designkey
object (with one key matrix per prime) from a multi-components object.
1 2 3 4 |
keys |
an object of the class. |
selection |
|
An object of class designkey
, which contains
the selected design.
pick(K0,1)
can be simply written K0[1]
Classes where this method applies:
listofdesignkeys
,
listofkeyrings
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ### Creation of an object of class listofdesignkeys
K2 <- planor.designkey(factors=c("R","C","U","A","B1","B2"),
nlevels=c(3,2,2,3,2,2), model=~R*C + (A+B1+B2)^2, estimate=~A:B1+A:B2 , nunits=12,
base=~R+C+U, max.sol=2)
### Method pick applied on the listofdesignkeys object
K2.1 <- pick(K2,1)
K2.1 <- K2[1] ## Another way of extracting ([ is synonym of pick)
### Creation of an object of class listofkeyrings
K0 <- planor.designkey(factors=c(LETTERS[1:4], "block"),
nlevels=rep(3,5), model=~block+(A+B+C+D)^2, estimate=~A+B+C+D,
nunits=3^3, base=~A+B+C, max.sol=2)
### Method pick applied on the listofkeyrings object
K0.1 <- pick(K0,1)
K0.1 <- K0[1] ## the same
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.