I do have an existing column with only numbers that correspond to codes about the weather (numbers corresponds to a type of precipitations and can be grouped, e.g. 80 to 82= rain, 86 to 90 = snow etc). Now I would like to return the type of precipitation (rain, snow) according to those codes in a new column.
I know this is a very rookie question, but I'm a total beginner in R so please save me :)
thanks in advance
I already created some values grouping numbers referring to the same type of precipitation:
x<-50:67
y<-80:82
a<-68:69
b<-83:84
c<-70:79
d<-85:86
e<-36:39
Then I tried to link these values to a text...not sure I did it the right way though:
type_list <- list(x = "rain", y = "rain", a = "mixed",b = "mixed",c = "snow", d ="snow")