Hi Everyone, I have a variable called SUM which has around 16 million entries I need to assign them to buckets for e.g.
| SUM | Bucket |
| 90000 | 50,001 - 100,000 |
| 35000 | 0 - 50,000 |
I know that something like this can be quickly done with an ifelse statement however I have a large number of values and they need to go into several buckets. The bucket breakdown is as follows:
| 0 - 50000 |
| 50001 - 100000 |
| 100001 - 250000 |
| 250001 - 500000 |
| 500001 - 1000000 |
| 1000001 - 1500000 |
| 1500001 - 2000000 |
| 2000001 - 2500000 |
| 2500001 - 3000000 |
| 3000001 - 3500000 |
| 3500001 - 4000000 |
| 4000001 - 4500000 |
| 4500001 - 5000000 |
| 5000001 - 6000000 |
| 6000001 - 7000000 |
| 7000001 - 8000000 |
| 8000001 - 9000000 |
| 9000001 - 10000000 |
| 10000001 - 11000000 |
| 11000001 - 12000000 |
| 12000001 - 13000000 |
| 13000001 - 9999999999 |
is there a more efficient way then using ifelse statements? I was thinking of using Tiles function but wasn't sure if that would work here.
Thanks in advance!