Possible Duplicate:
How to see the source code of R .Internal or .Primitive function?
I'm searching for the C source used to compute R's rank function
I've looked in the R/src/main/ directory and i can't find it. Does anyone know where
i can find the source code for what R calls when i use R's internal rank function? e.g. what is called when one does .Internal(rank(x,"average")).
Alternatively, i would like to ensure that the efficient way to get the rank vector corresponding to a vector of floats is to first sort them.