Hello, I am trying to split a range of integers into quintiles:
[1] 10 10 10 10 11 11 11 12 13 13 15 15 17 18 19 20 22
[18] 25 25 25 26 28 31 31 32 32 32 36 36 38 39 43 44 47
[35] 48 55 55 60 70 71 121 134 169 181 268 318 344 354 431 436 479
[52] 489 520 700 925 1083 1106 1211 1324 1434
I want the breaks to be integers in my original range of values so the breaks might end up as 10-15; 17-31; 32- 55; 55-354; 431-1434.
I.e. there is no '16' in my values. Also there are a number of values of 55.
I am using quantile function at present and rounding e.g.: round(quantile(j$NUMBER_OF_PATIENTS, 0.2)) but I want to avoid the breaks starting and ending on the same integer e.g. 10-17; 17-31
Would anyone know of a different approach?
Many thanks