What is the fastest way to extract the min from each column in a matrix?
Moved all the benchmarks to the answer below.
mat[(1:ncol(mat)-1)*nrow(mat)+max.col(t(-mat))] seems pretty fast, and it's base R.
mat[(1:ncol(mat)-1)*nrow(mat)+max.col(t(-mat))]