I have a dataset of 66,527,460. They are sorted in ascending order based on count values. Is there a way to write a function or loop in R that will tell me what the 1st through 10th decile is and what the min and max value for 'count' variable?
I am breaking up my deciles like this so it knows how to be defined in a loop, etc..
1st decile: 66,527,460 * .1
2nd decile: 66,527,460 *.2
3rd decile: 66,527,460 *.3
etc.. all the way to
10th decile: 66,527,460 *1