Hello, I extracted a column of values from my dataframe and sorted them. I am now left with the values of that column and I have assigned a variable to these values. How do I group these values from e.g group 1: <=90 (so valued less than or equal to 90)
Group 2: 90 <=180 and so forth until I reach 360??

I just want to take the column and divide it into values from <= 90, 90 <= 180 and so on. I can do it for the first one but then the rest I get an error as it does not recognise the 90 <= 180

Also, please use meaningful thread titles instead of "Need help" or something like that. That will significanty improve chance of answers from the menbers.

Now that moderation stuff is done, I'll share the following pointers, without providing any direct solution.

You absolutely do not need tidyverse or data.table.

There is no reason to use case_when of ifelse or if_else here, as there is no need to specify all intervals manually. In this particular case, cut function, suggested by Andrzej already, is perfect, and it comes from base R only.

cut can be applied on vectors directly, no need to convert to data.frame or related classes.