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