I am trying to revalue the column score in my dataset. After I check the Min, 1st Qua, 3rd Quad and Max. I try to Label specific range as following code
data2019$Score <-revalue(data2019$Score,c
("(2.853,4.553]" = "Not Happy", "(4.553,6.187]" = "Happy", "(6.187,7.769]" = "Flourishing"))
I keep getting error that x is not a factor or a character vector. Please be advised on this issue