I am trying to use the cut function in R to group a list of values between 620-290. I am using this line of code
mutate(group_no = cut(n,50))
The output is this. Is it possible to modify the range to be 1-100,101-200,201-300. The whole idea for this is to make it easy to represent the data in a graph which is 1024 long. Happy to try a different approach if anyone can suggest anything.
1 (330,336]
2 (310,316]
3 (303,310]
4 (336,343]
5 (297,303]
6 (343,349]
7 (323,330]
8 (316,323]
9 (290,297]
10 (349,356]
11 (613,620]
12 (607,613]