What I want to ask is, algorithmically, what do the rowMeans() and colMeans() functions do to optimize speed?
rowMeans()
colMeans()
rowMeans and colMeans are faster than because they call C code directly, rather than being interpreted by the R interpreter.
rowMeans
colMeans