Learn R Programming

crunch (version 1.20.0)

calcInsertions: Given a vector of values and elements, calculate the insertions

Description

Given a vector of values and elements, calculate the insertions

Usage

calcInsertions(vec, elements, var_cats)

Arguments

vec

values to transform (a single dimension of an array)

elements

AbstractCategories of both Categorys and Insertions to calculate. Generally derived from mapInsertions()

var_cats

the Categories object tat corresponds to the vector in vec of the transform

Value

the values given in vec, with any insertions specified in trans calculated and inserted