I\'m a newbie in R so, I really need some help here. I just want to sort each column independently. Any help is appreciated!
> mat <- matrix(c(45,34,1
Yes, there is!
apply(mat, 2, sort) [,1] [,2] [,3] [1,] 1 1 2 [2,] 3 2 3 [3,] 34 5 4 [4,] 45 7 32 [5,] 4325 23 734