In R, say you have a named numeric such as:
3777 3727 3421 2373 3259 512 3174 3456 3536 805
4 4 8 9 2 2 6 4 6 6
The values on the top are rownames from a larger matrix, and the values below it are the column of data I want from that row.
So, I want from dataframe (or matrix) row with name 3777, col 4's value. and so on.
What is the easiest way to do this?
thank you.