apply_array: Helper to apply functions
Description
Used to make use of apply-like operations, regardless of wether the input
is a matrix or a data.frame
Usage
apply_array(obj, dim, fun)
Arguments
- obj
Matrix or data.frame.
- dim
Dimension to apply function to.
- fun
Function object to apply.