ck.crd | R Documentation |
This function checks the frequencies of genotypes in a CRD.
ck.crd(dfr, y, geno)
dfr |
The name of the data frame. |
y |
The name of the column for the variable to analyze. |
geno |
The name of the column that identifies the genotypes. |
The number of genotypes (ng
), the number of genotypes without
data (ng.0
), the number of replications (nrep
), and the number
of rows in the data frame with missing values for factors (nmis.fac
).
Raul Eyzaguirre.
# Create design
dfr <- cr.crd(1:50, 3, 10)
dfr <- dfr$book
# Create some random data
dfr$y <- rnorm(150)
# Delete some values
dfr[c(1, 5, 56, 77, 111), 'y'] <- NA
# Delete some values for classification factors
dfr[c(27, 48), 'geno'] <- NA
# Check the design
ck.crd(dfr, 'y', 'geno')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.