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

collapse_dims

Collapse an array from a CrunchCube by summing


Description

This is an internal function that powers dimSums()

Usage

collapse_dims(array_in, margins_to_collapse, collapsed_items)

Arguments

margins_to_collapse

the margins that should be collapsed

collapsed_items

vector of logicals if any of the dimensions in margins_to_collapse are of the _items type

array

the array from a CrunchCube to collapse

margins_to_keep

the margins that should be kept

Value

a duly-collapsed array


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.