hmean: Harmonic Mean

View source: R/hmean.r

hmeanR 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)

sbd documentation built on June 22, 2024, 9:50 a.m.

Related to hmean in sbd...