search for: rankmax

Displaying 1 result from an estimated 1 matches for "rankmax".

2003 Jul 22
1
rank with ties
Hi, Is there a function like rank but that solves the ties by randomly assigning a value (doesn't average ranks of ties). This is what I actually need: I want to make NA all elements of each column in an array that are ranked in a position larger that rankmax for each column. # Say I've got an array b: b<-cbind(c(1:5,5:1),c(1,12,14,2,5,4:8)) #> b # [,1] [,2] #[1,] 1 1 #[2,] 2 12 #[3,] 3 14 #[4,] 4 2 #[5,] 5 5 #[6,] 5 4 #[7,] 4 5 #[8,] 3 6 #[9,] 2 7 #[10,] 1 8 rankmax<-...