Skip to content
Prev 255925 / 398506 Next

function order

On Wed, Apr 06, 2011 at 11:35:32AM +0100, Yan Jiao wrote:
Jim already pointed out that the argument needs to go inside the
parenthes of the order function. In addition, order has an argument
called 'decreasing', but none called 'inceasing'. Finally, you are
lacking a comma in your subsetting of the matrix:
[1] 2 6 1

But you probably mean:
[,1] [,2] [,3]
[1,]    2    3    1
[2,]    6    5    2
[3,]    1    2    3

cu
	Philipp