R/forNowTransforms.R
calcTabMeanInsert.Rd
Given a vector of values, calculates the weighted mean
calcTabMeanInsert(vec, var_cats)
vec | A vector to use for calculation (a single dimension of an array) |
---|---|
var_cats | The `Categories` object that corresponds to the vector in `vec` |
The weighted mean of the numeric values of `var_cats` given the weights in `vec`