All Tools Bookmark


Facebook Share Twitter Share

arrApply: Apply a Function to a Margin of an Array

High performance variant of apply() for a fixed set of functions. However, a considerable speedup is a trade-off for universality. Only the following functions can be applied: sum(), prod(), all(), any(), min(), max(), mean(), median(), sd(), var().