I am new to R. I have 3 data frames WT1, WT2,WT3 with 5000 rows and 3 columns c1,c2,c3.
I have already written code and created a data frame called "Result" with same 5000 rows and two columns(M1,M2) containing the maximum and minimum values obtained by comparing each corresponding row of all the five data frames using for loop.
Though i have max and min values in M1,M2 of "Result" for each row of WT1, WT2,WT3, i dont know in which data frame this Max value occurs and in which dat frame the Min value occurs. So i should find in which data frame the M1(max) value occurs and should display the correcponding data frame's c1 element in a separate column M3 in "Result". Similarly the code should find from which data frame the M2(min) value occurs and display the corresponding data frame's c1 elemnt in a separate column called M4 in "Result". The code should do this for all 5000 rows in "Result" to display M3 and M4.
Note: The c1 element will be in alphanumeric format(04WEA804500), So i guess i should also convert it to numeric before displaying it in M3 and M4..Sorry for not pasting the data frames here as it is large.....Plesae help me..
Thanks in advance..