ck.fs | R Documentation |
This function cheks the structure of factors.
ck.fs(factors, rep, dfr)
factors |
The names of the columns that identify the factors. |
rep |
The name of the column that identifies the replications, |
dfr |
The name of the data frame. |
The number of factors (nf
), the number of levels of the factors
(nl
), the lists of levels of factors (lf
), the number of treatments
(nt
), the list of treatments (lt
), the number of replications
(nrep
), the list of replications (lrep
), the number of rows
with missing values for factors (nmis.fac
), and the data frame after
removal of all these rows.
Raul Eyzaguirre.
## Example 1
# Create a design
dfr <- cr.rcbd(1:20, 3, 10)
dfr <- dfr$book
# Check the design
ck.fs("geno", "block", dfr)
## Example 2
# Create a design
A <- paste0("a", 1:5)
B <- paste0("b", 1:3)
dfr <- cr.f(c("A", "B"), list(A, B), "rcbd", 3, 10)
dfr <- dfr$book
# Check the design
ck.fs(c("A", "B"), "block", dfr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.