wtAvg: Weighted Average, NA

Description Usage Arguments See Also

View source: R/helperStat.R

Description

Take the weighted average, with NA's removed, but if all are NA, return NA (not 0)

Usage

1
wtAvg(x, y)

Arguments

x

the value to be average over

y

the value to be transformed into weights

See Also

sumna, meanna, wtAvg, fill.mean


rBatt/trawlData documentation built on May 26, 2019, 7:45 p.m.