search for: woppa

Displaying 1 result from an estimated 1 matches for "woppa".

Did you mean: coppa
2000 Jul 13
2
Programming puzzle...
Dear R guru's, I'd like to sort the columns of a matrix according to the elements in the first row, and in case of a tie according to the second row, etc. In case of a 3xn matrix woppa, something like colorder _ order(woppa[1,], woppa[2,], woppa[3,]) I just cannot seem to find a way to do this for a variable number of rows, e.g. if woppa has 10 or 15 rows I now manually cut and paste to have 10 - 15 arguments in the order function. There has to be a clever way to do this... R...