powered by
bm_morder(x, cols, na.last = TRUE, decreasing = FALSE)
bm <- bigmemory::big.matrix (9, 3) bm[] <- sample(1:3, 27, replace=TRUE) bm[] bm_morder (bm, cols=1, decreasing=c(TRUE, FALSE)) bm_morder (bm, cols=1, decreasing=c(FALSE, TRUE))
Run the code above in your browser using DataLab