Extract information for the file which is in csv with one column by comparing with another matrix file with dim of 15251*15251.

The dim of first file is 2187*1 , If the first file match with the other file need to extract the information.

Kindly provide me the suggestions.

Hi @nithyachandramohan: If you could post the data you're using, that would be very helpful to folks so they can better help you. Could you try applying the dput() function to your tables and paste the output here, like this?

<--- paste output of dput() here

sample of First file (2187 *1)

Sample of 2nd file
P00352 Q13683 Q9ULJ8 P10124 P50213 Q13153 P19113
P19113 3 3 4 3 3 4 3
Q13423 2 1 5 4 2 1 1
P50213 1 2 3 1 4 5 4
Q9ULJ8 1 2 4 5 6 2 5

I need the output in the below format,
Q9ULJ8 P50213 P19113
P19113 3
Q9ULJ8 4
P50213 5

Screenshots are not very helpful, can you provide a proper reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.