ef="https://rdrr.io/r/stats/weighted.mean.html" class="external-link">weighted.mean()</a></code> does for means. It is
mostly used as a helper function for <code><a href="../reference/sumtable.html">sumtable()</a></code> when
<code>group.weights</code> is specified. However, you can use it on its
own if you like. Unlike <code><a href="https://rdrr.io/r/stats/weighted.mean.html" class="external-link">weighted.mean()</a></code>, setting
<code>na.rm = TRUE</code> will account for missings both in
<code>x</code