.stackArray | R Documentation |
This function aims to reorganize an array by reducing dimension 'byDim' (similar to stack() for data-frames) It returns an array/matrix of 1 dimension less than 'arr', 1st dim has more lines (names as paste with '_')
.stackArray(arr, byDim = 3)
arr |
(array) main input |
byDim |
(integer) |
This function returns an array/matrix of 1 dimension less than 'arr', 1st dim has more lines (names as paste with '_')
dist
(arr1 <- array(11:37, dim=c(3,3,3)))
.stackArray(arr1, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.