[R] Slight problem in sort

Jason Turner
Wed, 06 Aug 2003 21:42:39 -0000

Frank E Harrell Jr wrote:
>>sort(c(3,1,NA))
>
> [1] 1 3
>
> Shouldn't NAs be retained by default?

help(sort)

sort(c(3,1,NA),na.last=TRUE)

Cheers

Jason
--
Indigo Industrial Controls Ltd.
64-21-343-545
jasont at indigoindustrial.co.nz