Michael Harris Michael Harris

The “rank” Function in R

Computes the sample ranks of the values in a numeric vector, with ties getting the average of ranks for the tied values.

Read More
Michael Harris Michael Harris

The “order” Function in R

Returns the permutation which rearranges its first argument into ascending or descending order, breaking ties by further arguments.

Read More