stack {narray} | R Documentation |
Stacks arrays while respecting names in each dimension
Description
Stacks arrays while respecting names in each dimension
Usage
stack(..., along = length(dim(arrayList[[1]])) + 1, fill = NA,
drop = FALSE, keep_empty = FALSE, allow_overwrite = FALSE,
fail_if_empty = TRUE)
Arguments
... |
N-dimensional arrays, or a list thereof |
along |
Which axis arrays should be stacked on (default: new axis) |
fill |
Value for unknown values (default: |
drop |
Drop unused dimensions (default: FALSE) |
keep_empty |
Keep empty elements when stacking (default: FALSE) |
allow_overwrite |
Overwrite values if more arrays share same key |
fail_if_empty |
Stop if no arrays left after removing empty elements |
Value
A stacked array, either n or n+1 dimensional
[Package narray version 0.5.1 Index]