an object containing the values whose weighted mean is to be
computed.
weights
A numerical vector of weights the same length as x giving
the weights to use for elements of x. If weights = NULL, x is passed
to the non-weighted function.
remove_na
Logical, if TRUE (default), removes missing (NA) and infinite
values from x and weights.