ck.abd | R Documentation |
This function checks the frequencies of genotypes in an ABD.
ck.abd(y, geno, rep, dfr)
y |
The name of the column for the variable to analyze. |
geno |
The name of the column that identifies the genotypes including checks. |
rep |
The name of the column that identifies the replications. |
dfr |
The name of the data frame. |
The number of checks ng.ck
, the number of no checks ng
,
the number of missing values for checks nmis.ck
), the number of missing
values for no checks nmis
, the number nck.0
and list ck.0
of checks without data, the number nck.1
and list ck.1
of checks
with only one datum, the number of checks with at least two data nck.2
,
the number of checks that appear more than once in a given replication
(nck.mult
), 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.abd(1:50, c('a', 'b', 'd'), 5, 10)
dfr <- dfr$book
# Create some random data
dfr$y <- rnorm(65)
# Delete some values
dfr[c(1, 5, 7, 56), 'y'] <- NA
# Delete some values for classification factors
dfr[64, 'geno'] <- NA
# Check the design
ck.abd('y', 'geno', 'block', dfr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.