Skip to content
Prev 175285 / 398502 Next

Selecting elements from a vector (a simple question with weird results)

Tal Galili <tal.galili at gmail.com> [Sat, Mar 28, 2009 at 06:48:36PM CET]:
To my mind, it does what you told it to, and therefore "works"
in my book. The routine orders the numbers by placing the third element
first, the first second, and the second third.

Maybe aa[order(aa)] does what you mean it to do?

Best wishes


Johannes