This web log is my online notebook for software tips and hacks to make my life and hopefully that of someone else just a little bit easy. Should you find any mistakes or have any useful suggestions, please do not hesitate to write to me.
Peace!
Pavan Ghatty
Thursday, January 16, 2014
Sorting by columns in R
Sorting columns in R is a breeze. If d is a matrix with 2 columns and you want to sort d by column 1, use the command order as below.
No comments:
Post a Comment