mergeArrays: Merge arrays having common dimension identifiers

Description Usage Arguments Value

View source: R/array_transform.R

Description

mergeArrays merges multiple arrays or a list of arrays into one large array. It can be regarded as the inverse of splitArray.

Usage

1
mergeArrays(..., base_value = NA, sort_dims = FALSE, sort_dimlevels = FALSE)

Arguments

...

numeric arrays with named dimension names or a list of such arrays. All arrays must have identically named dimensions, but the order of dimensions does not need to be identical. Duplicated dimension levels are not allowed.

base_value

while setting up the resulting array, what value should be given as default (e.g. NA, 0, "", etc.)

sort_dims

logical. If FALSE (default), the order of dimensions follows the first array's dimension order; if TRUE, lexical sorting is applied.

sort_dimlevels

logical; should dimension levels be sorted for each dimension (default: FALSE)

Value

The resulting array has identical dimension identifiers as the input arrays, and for each dimension, as many dimension levels as the union of the dimension levels of the input arrays.


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