calcTabMedianInsert: Given a vector of values, calculates the weighted median

View source: R/forNowTransforms.R

calcTabMedianInsertR Documentation

Given a vector of values, calculates the weighted median

Description

Given a vector of values, calculates the weighted median

Usage

calcTabMedianInsert(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 median 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.