📅  最后修改于: 2022-03-11 14:59:18.687000             🧑  作者: Mango
代码示例1
# using psych package
library(psych)
harmonic.mean(x,na.rm=TRUE,zero=TRUE)
# base R
a = c(vector)
1/mean(1/a) #harmonic mean calculation