harm_mean: Convenience functions

Description Usage Arguments Details References

View source: R/convenience_functions.R

Description

Convenience functions. These are generally not to be called by the user

Usage

1

Arguments

x

A numeric vector or maxtrix.

Details

The formula for the harmonic mean given in the function harm_mean is:

e_h = n / ∑{\frac{1}{e_j}}

By default, the function will remove infinite values and calculate the sum using non-missing values.

References

Holland, J.B., W.E. Nyquist, and C.T. Cervantes-Martinez. 2003. Estimating and Interpreting Heritability for Plant Breeding. p. 9-112. In Janick, J. (ed.), Plant Breed. Rev. John Wiley & Sons, Inc.


neyhartj/pbr documentation built on Jan. 7, 2020, 9:24 a.m.