calcTabMeanInsert: Given a vector of values, calculates the weighted mean

View source: R/forNowTransforms.R

calcTabMeanInsertR Documentation

Given a vector of values, calculates the weighted mean

Description

Given a vector of values, calculates the weighted mean

Usage

calcTabMeanInsert(vec, var_cats)

Arguments

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'

Value

The weighted mean of the numeric values of 'var_cats' given the weights in 'vec'


Crunch-io/crunchtabs documentation built on Jan. 31, 2023, 12:14 p.m.