I have a matrix like so:
Only in reality it is hundreds or thousands of values.
What I need to do is return the minimum value for each row, along with the row/col name.
So for row 1 in the example, "BAC", the minimum is 0.92 for BAC/CSCO, so I need to return something like:
BAC/CSCO 0.92
And then repeat this for each row in the matrix.
Assistance is greatly appreciated. I think apply is the trick, but I can't quite get the right combination.
will give you:
and
Or here with
apply()