When there are ties in the original data, is there a way to create a ranking without gaps in the ranks (consecutive, integer rank values)? Suppose:
x <-
What about sort()?
sort()
x <- c(1,1,2,3,4,5) sort(x) > sort(x) [1] 1 1 2 3 4 5