Reduces the third dimension of a cube and returns a data frame
This is only meant to be a helper function and not meant to be called by the user itself
reduce_cube(cube, dim3_names, name = deparse(substitute(dim3_names)))
cube
: Some 3D arraydim3_names
: Vector of length dim(cube)[3] containing a name for each slicename
: What should the column containing the dim3_names be called?Returns a data frame constructed from the cube