[Rd] What to do with a inconsistency in rank( ) that's in S+ and R ever since?

2006-10-27 Thread Jens Oehlschlägel
Dear R-developers, I just realized that rank() behaves inconsistent if combining one of na.last in {TRUE|FALSE} with a ties.method in {average|random|max|min}. The documentation suggests that e.g. with na.last=TRUE NAs are treated like the last (=highest) value, which obviously is not the case:

Re: [Rd] What to do with a inconsistency in rank() that's in S+ and R ever since?

2006-10-27 Thread Andrew Piskorski
On Fri, Oct 27, 2006 at 11:14:25AM +0200, Jens Oehlschl?gel wrote: rather, but in fact NAs seem to be always treated ties.method = first. I have no idea in which situation one could desire e.g. ties.method = average except for NAs!? Interesting. I was aware of the S-Plus vs. R difference,