Gets the value of daeTolerance for the package dae

A function to calcuate the harmonic mean of a set of nonzero numbers.

1 |

`x` |
An object from whose elements the harmonic mean is to be computed. |

All the elements of `x`

are tested as being less than `daeTolerance`

,
which is initially set to `.Machine$double.eps ^ 0.5`

(about 1.5E-08). The function `set.daeTolerance`

can be used to change `daeTolerance`

.

A numeric. Returns `Inf`

if `x`

contains a value close to zero

1 2 | ```
y <- c(seq(0.1,1,0.2))
harmonic.mean(y)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.