ck.fq | R Documentation |
This function cheks the frequencies of valid cases for treatments and replications.
ck.fq(trait, factors, rep, dfr)
trait |
The name of the column for the trait to analyze. |
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. |
A table of frequencies of valid cases for all factors' levels combinations
(tf
), a table of frequencies of valid cases for all factors' levels and
replications combinations (tfr
), the number of missing values nmis
,
and the proportion of missing values (pmis
).
Raul Eyzaguirre.
## Example 1
# Create a design
dfr <- cr.rcbd(1:20, 3, 10)
dfr <- dfr$book
# Create some random data
dfr$y <- rnorm(60)
# Delete some values
dfr[c(1, 5, 16, 17), 'y'] <- NA
# Check the frequencies
ck.fq("y", "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
# Create some random data
dfr$y <- rnorm(45)
# Delete some values
dfr[c(5, 10, 24), 'y'] <- NA
# Check the frequencies
ck.fq("y", c("A", "B"), "block", dfr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.