hmean {sbd}R Documentation

Harmonic Mean

Description

Calculates harmonic mean and its standard error.

Usage

hmean(x, na.rm = TRUE)

Arguments

x

A vector of positive numbers.

na.rm

A logical (TRUE or FALSE) indicating whether to strip out missing values before computing.

Value

A list with values mean and se.

Examples

  data(BCI_speed_data)
  agoutiData <- subset(BCI_speed_data, species=="agouti")
  hmean(agoutiData$speed)

[Package sbd version 0.1.0 Index]