| map_simple {narray} | R Documentation |
Apply function that preserves order of dimensions
map_simple(X, along, FUN, drop = TRUE, ...)
X |
An n-dimensional array |
along |
Along which axis to apply the function |
FUN |
A function that maps a vector to the same length or a scalar |
drop |
Remove unused dimensions after mapping; default: TRUE |
... |
Arguments passed to the function |
An array where FUN has been applied