a data frame containing trait, genotype and environment.
trait
colname of a column containing a numeric vector of interested trait to be analyzed.
genotype
colname of a column containing a character or factor vector labeling different genotypic varieties.
environment
colname(s) of a column containing a character or factor vector labeling different environments,
if input is a vector containing multiple column names, then it will be merged into single environment column in the function.
lambda
the minimal acceptable value of trait that the user expected from crop across environments. Lambda should between the ranges of trait vlaue.
normalize
logical, default is FALSE, indicating whether stability indices should be normalized to the range from 0 to 1, where 1 refer to stable and 0 is unstable.
unit.correct
logical, default is FALSE, returning the stability index with unit equals to squared unit of trait; when TRUE, returning stability index with the unit as same as unit of trait.
Author
Tien-Cheng Wang
Details
Combine all stability indices in this package and export as a table, including mean trait, normality of the trait across environment.