twStackArrayDim: twStackArrayDim

Description Usage Arguments Value Author(s) See Also Examples

View source: R/arrayExtract.R

Description

stacks a dimension of an array, i.e. reduces to a lower dimension

Usage

1
2
twStackArrayDim(x, sourceDim = length(dim(x)), destDim = length(dim(x)) - 
    1, sep = "_")

Arguments

x

the array to process

sourceDim

the dimension that should be stacked

destDim

the dimension, along which to stack, referring to the resulting array

sep

character separating the parts of the new dimension names

Value

Array of one dimension less than x. Dimnames are concatenaed names of the sourceDim and the original destDim

Author(s)

Thomas Wutzler

See Also

twExtractDim, twMisc

Examples

1
#twStackArrayDim()

twMisc documentation built on May 2, 2019, 6:11 p.m.