[R] Slight problem in sort

Jason Turner jasont at indigoindustrial.co.nz
Wed Aug 6 23:42:39 CEST 2003


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




More information about the R-help mailing list