Given a vector of values and elements, calculate the insertions
calcInsertions(vec, elements, var_cats)values to transform (a single dimension of an array)
AbstractCategories of both Categorys and Insertions to
calculate. Generally derived from mapInsertions()
the Categories object tat corresponds to the vector in
vec of the transform
the values given in vec, with any insertions specified in
trans calculated and inserted