I am wondering if there are high speed min and max function that works on columns similarly to colMeans?
For 'max', although I can simulate the behavior with 'apply' such as the following:
colMax <- function (colData) {
apply(colData, MARGIN=c(2), max)
}
It seems a lot slower than the colMeans in the base package.
See Question&Answers more detail:os