Description Usage Arguments Value
View source: R/array_transform.R
mergeArrays
merges multiple arrays or a list of arrays into one large
array. It can be regarded as the inverse of splitArray
.
1 | mergeArrays(..., base_value = NA, sort_dims = FALSE, sort_dimlevels = FALSE)
|
... |
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) |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.