R - Create a ordered list from a matrix
问题 Hi there! I have this 24x24 matrix with a lot of numbers from 1-24. Where I want to turn every cell with the value of X (eg. 3) into the row.name of the X'th row (eg. name3) What I have row.names V1 V2 V3 name1 1 3 10 name2 3 20 1 name3 5 13 2 ... .. .. .. name24 19 3 4 What I want to do now, is turn all these numbers into a character string equvivalent to the i'th row name so a 1 should be converted to name1 and so forth. What I need row.names V1 V2 V3 name1 name1 name3 name10 name2 name3