Take advantage of vectorized functions
Summary
Take advantage of vectorized functions, like rowMedians
and colMedians
from the matrixStats
package.
Also, take a look at rowQuantiles
and colQuantiles
from matrixStats
. Avoid apply functions and loops and opt to vectorize.
Goals/sub-features
/cc @zych @jawirbel