imagine you have a matrix of 2000 rows and 2000 columns in R. Both (rownames and column names are identical). Now I have another data frame with 380 rows and one column. I would like to know how it is possible to select the rows and columns from the big matrix which match to the 380 values? I hope you can help.
Best wishes,
Lukas