expand.diallel | R Documentation |
This is a modification of the 'expand.grid()' function working specifically with diallel experiments. It creates a data frame from all combinations of the supplied vector of parents, depending on the mating scheme.
expand.diallel(pars, mating = 1)
pars |
|
mating |
The type of mating scheme. 1: full diallel experiment; 2: no reciprocals; 3: no selfs; 4: no reciprocals and no selfs |
returns a data.frame object
Andrea Onofri, Niccolo' Terzaroli, Luigi Russi
Onofri, A., Terzaroli, N. & Russi, L. Linear models for diallel crosses: a review with R functions. Theor Appl Genet (2020). https://doi.org/10.1007/s00122-020-03716-8
pars <- LETTERS[1:4]
expand.diallel(pars, mating = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.