This function computes the weighted arithmetic mean.
Arguments
- x
(named) numerical vector
- w
(optional) numerical vector of weights the same length as
x- i
(optional) numerical vector giving the position in
xor character vector matching the names inx. Ifmissingori = NULL, the entirexis considered for the computation of the score- na.rm
logical, whether to remove
NAvalues fromxbefore computation- ...
further arguments to
weighted.mean
Value
A numerical value representing the computed measure.
A default NA value is returned if the score can't be
computed.
Details
It is a wrapper to weighted.mean
function.