Skip to content

function order

4 messages · Yan Jiao, Philipp Pagel, Dennis Murphy +1 more

#
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
#
On 04/06/2011 08:35 PM, Yan Jiao wrote:
Hi Yan,
It is because you have put the "decreasing" argument outside the 
parentheses, and it is not being used in the "order" function.

Jim