reduce_cube function

Reduces the third dimension of a cube and returns a data frame

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)))

Arguments

  • cube: Some 3D array
  • dim3_names: Vector of length dim(cube)[3] containing a name for each slice
  • name: What should the column containing the dim3_names be called?

Returns

Returns a data frame constructed from the cube