View source: R/variance_of_rank.R
variance_of_rank | R Documentation |
variance_of_rank
calculate variance of a genotype across environments.
variance_of_rank(data, trait, genotype, environment, unit.correct = FALSE)
data |
a dataframe containing trait, genotype and environment. |
trait |
colname of a column containing a numeric vector of interested trait to be analysized. |
genotype |
colname of a column containing a character or factor vector labeling different genotypic varieties |
environment |
colname of a column containing a character or factor vector labeling different environments |
unit.correct |
logical, default is |
Variance of rank (Nassar and Huehn, 1987) is calculatd based on regression function. Variety with low variance of rank is considered as stable. Equation of variance of rank can be found in vignette file.
a data table with variance of rank
Tien-Cheng Wang
nassar1987toolStability
data(Data)
variance.of.rank <- variance_of_rank(
data = Data,
trait = "Yield",
genotype = "Genotype",
environment = "Environment",
unit.correct = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.