Learn R Programming

latrend (version 1.6.1)

weighted.meanNA: Weighted arithmetic mean ignoring NAs

Description

Weighted arithmetic mean ignoring NAs

Usage

weighted.meanNA(x, w, ...)

Arguments

x

an object containing the values whose weighted mean is to be computed.

w

a numerical vector of weights the same length as x giving the weights to use for elements of x.

...

arguments to be passed to or from methods.