apply_on_pillars | R Documentation |
Define a 'pillar' of a 3-dimensional array as pillar i,j
off array
arr
being arr[i, j, ]
. This function applies a specified
function to each pillar.
apply_on_pillars(arr3d, FUN)
arr3d |
A 3-dimensional array. |
FUN |
A function which takes a vector as input and, for a given input length, outputs a vector of constant length (can be 1). |
If FUN
is returning length 1 vectors, a matrix whereby
mat[i, j] = FUN(arr3d[i, j, ])
. If FUN is returning vectors of
length l > 1
, a 3-dimensional array whereby arr[i, j, ] =
FUN(arr3d[i, j, ])
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.