mergeDims: Reshape array by merging specific dimensions

Description Usage Arguments Value

View source: R/array_transform.R

Description

mergeDims reshapes an array by merging user-specified dimensions

Usage

1
mergeDims(dat, dims, return_attributes = TRUE, keep_dimnames = TRUE, sep = ".")

Arguments

dat

array to reshape

dims

list of dimension names or dimension indices to merge. Can be a vector if only one group of dimensions should be merged. If any of the list elements is a character vector, dat must have named dimnames.

return_attributes

logical value (default: TRUE) whether original attributes should be appended to the resulting array

keep_dimnames

logical; if TRUE (default), dimension names are also merged and attached as dimnames attribute

sep

character which separates dimension names after merging (default ".")

Value

Array with merged dimensions


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.