I have a set of code which is ID: 1, 2, 3, ..., 100, ... 150, ... X: 0.01, 0.02, 0.01, ..., 0.02, ..., 0.04, ...
I want to create a new column with values that correspond to the values of ID for example I want a new column "month" whose values from ID 1-100 are called "May" and from 101-150 is called "June" and so on. So the new data frame would look like this...
ID: 1, 2, 3, ..., 100, ... 150, ... X: 0.01, 0.02, 0.01, ..., 0.02, ..., 0.04, ... Month: May, May, May, May, May, June, June, July, July, ...
How can I do so using the tidyverse package?
Thank you