Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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, insert_funcs, dim_names = names(insert_funcs))

Arguments

vec

values to transform (a single dimension of an array)

dim_names

the names of the dimensions (although this is calculable at call-time, it's much more efficient to provide this to the call)

trans_funcs

a (named) list of functions that return the correct vector of the array (with desired insertions and transformations included)

Value

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


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.