applyInsert: Given an array of values and elements, calculates some...

View source: R/forNowTransforms.R

applyInsertR Documentation

Given an array of values and elements, calculates some summary statistics of some columns

Description

Given an array of values and elements, calculates some summary statistics of some columns

Usage

applyInsert(vec, var_cats, a_func)

Arguments

vec

An array of values and elements

var_cats

The 'Categories' object that corresponds to the object 'vec'

a_func

A function usually to calculates a summary statistic

Value

If 'vec' has three dimentions, a row that results from applying 'a_func' to each column of each object of the third dimention of 'vec'; otherwise, a row that results from applying 'a_func' to each column of 'vec'


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