hi everyone I have a dataframe like this:
value count
<dbl> <dbl>
1 1 10
2 2 20
3 3 30
4 4 40
5 5 50
6 6 60
I would like to be able to divide my observations into intervals. The first and last interval must include all the observations left out of the range (for example of 2)
interval count
<???> <dbl>
1 [<1, 2] 30
2 [3, 4] 50
3 [5, >6] 110
Is it possible to do this with dplyr?