suppose I have a number distribution like this.
set.seed( 145)
data <- runif(100, 0, 500)
q = quantile( data, probs=c ( seq(0,1, by=.01) ) )
for a given number, 300, I would like to know what percentile it ranks in data? I can I guess figure out which q bin it is between but this is convoluted, is there an easier way?
thanks.