I want to ranks quantiles for my data, but I get the high rank for the highest score. I want to get the lowest rank (i.e., 1) for the highest score.
The following code gives me a high rank for the highest score, which I am not interested in:
M %>%
mutate(quantile = ntile(Score, 10))
I have used reverse= TRUE, or include.lowest = TRUE, did not work. Can you help me? I felt that it is not necessary to provide a sample of data.