I was looking at rank() and I came across:

...
"first" = sort.list(sort.list(xx)), ...

line 32 of rank.r [1]

sort.list(x) returns the indices of the values of x in ascending (by
default) order. So sort.list(sort.list(x)) returns the same list.

So, what am I missing here?

-Tyler

[1] view-source:http://svn.r-project.org/R/trunk/src/library/base/R/rank.R

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to