Learn R Programming

PhysioIndexR (version 0.1.0)

YSI: Yield Stability Index (YSI)

Description

This function computes Yield Stability Index (YSI) using any traits (like yield) under stress and non-stress conditions. The lower values of YSI indicates greater tolerance. For more details see Bouslama and Schapaugh (1984) doi:10.2135/cropsci1984.0011183X002400050026x.

Usage

YSI(Gen, YN, YS)

Value

A data frame with columns Gen, YSI.

$$YSI = \frac{YS}{YN}$$

Arguments

Gen

Character vector of genotype identifiers.

YN

Numeric vector: yield (any trait) under non-stress (normal) environment.

YS

Numeric vector: yield (any trait) under stress environment.

References

Bouslama, M. and Schapaugh Jr, W.T. (1984). doi:10.2135/cropsci1984.0011183X002400050026x.

Examples

Run this code
out = YSI(Gen=c("G1","G2","G3"), YN=c(10,8,5), YS=c(7,5,3))
print(out)

Run the code above in your browser using DataLab