| Library: | xplore |
| See also: | | ~ reshape reduce |
| Quantlet: | stack | |
| Description: | Joins two arrays along the third dimension. |
| Usage: | z = stack (x, y) | |
| Input: | ||
| x | d1 x d2 x p array | |
| y | d1 x d2 x q array | |
| Output: | ||
| z | stack of x and y | |
library("xplore")
x = reshape (1:8, #(2,4))
y = matrix (2, 4)
stack (x, y)
Contents of z [,,1,1,1,1,1,1] [1,] 1 3 5 7 [2,] 2 4 6 8 [,,2,1,1,1,1,1] [1,] 1 1 1 1 [2,] 1 1 1 1
| Library: | xplore |
| See also: | | ~ reshape reduce |