[R] Decreasing Sort Error Message

Romain Francois romain.francois at dbmail.com
Sun Oct 11 11:38:22 CEST 2009


On 10/11/2009 10:55 AM, tom_p wrote:
> Can anybody tell me how to fix this error?
> Thanks,
> Tom

'decreasing' must be a length-1 logical vector.

so either TRUE or FALSE

 > array_down = sort(sort_array,decreasing = TRUE )


>> array_down = sort(sort_array,decreasing = 1)
>
> Error in sort(sort_array, decreasing = 1) :
>    'decreasing' must be a length-1 logical vector.


-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos




More information about the R-help mailing list