How to convert integer into categorical data in R?

Have a look at ?as.factor. In your case

mydata$COR <- as.factor(mydata$COR)

Leave a Comment