Skip to content
Prev 278100 / 398506 Next

count ties after rank?

Hi,  

   Thank you all for the the quick response. But there still some questions. 

    1) nTies = length(x) - length(unique(x)) cannot distinguish vector (1,2,2,2,3), and (1,2,2,3,3)....

     2) table(x)[table(x) >1] tells me the right number,  but how can I call the numbers from the result of table function? I.e., I want to get the tie number, t and use it in another equation.