stackTrait | R Documentation |
stackTrait
creates a dataset stacking traits in the long format to be used with the mmec
solver for multi-trait models.
stackTrait(data, traits)
data |
a data frame with traits in wide format. |
traits |
variable names corresponding to the traits that should be in the long format. |
a data frame with traits in long format.
Giovanny Covarrubias-Pazaran
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
The function vsc
to know how to use stackTrait
in the mmec
solver.
data(DT_example)
DT <- DT_example
A <- A_example
head(DT)
DT2 <- stackTrait(DT, traits = c("Yield","Weight"))
head(DT2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.