I have the following dataset:
   Rate       WUE
1     1 11.071188
2     1 15.334987
3     1 11.074738
4     1 13.101628
5     1 17.516873
6     1 15.408335
7     1 15.064044
8     1 14.890052
9     1 14.552573
10    1 15.392169
11    1 14.041053
12    1 11.269646
13    2 17.320536
14    2  8.905063
15    2 16.376546
16    2 15.202152
17    2 13.262815
18    2 10.568496
19    2 15.904926
20    2 15.189488
21    2 16.714268
22    2 17.803819
23    2 16.217470
24    3  9.030102
25    3 17.508928
26    3 13.454914
27    3 16.403707
28    3  9.931559
29    3 20.487025
30    3 16.314383
31    3 17.023167
32    3 17.095327
33    3 12.090982
34    3 15.227999
35    3 12.996101
36    4 17.626385
37    4 16.791135
38    4 17.015173
39    4 21.266143
40    4 15.576164
41    4 10.649791
42    4 19.238123
43    4 17.586917
44    4 20.408033
45    4 14.832184
46    4 12.735369
47    4 17.657028
And would like to change the names of the "Rate" levels from 1-4 to actual descriptions. Is there a way to do this with code? I want to avoid doing it in excel. I used the search function on stackoverflow and was unable to find an answer that worked for a dataset like this. Thanks in advance for any help and please let me know if there's anything else I can add.
 
     
    