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