Re: [R] comparing columns and printing overlapping rows

2017-06-02 Thread MacQueen, Don
There are missing details, such as: what do you mean by "overlapping"? do the "files" have the same number of rows? do you care whether the "overlapping" entries are in the same row? what kind of R data structure do you have the "files" stored in? Assuming your file 1 is stored in a vecto

[R] comparing columns and printing overlapping rows

2017-06-02 Thread Aanchal Sharma
Hi All, I have two files. 1. with only one column 2. data matrix I need to compare first columns of both files and print the rows from second file for the overlapping entries. I have solutions for awk and sed, but I need how to do it in R. Thanks Regards Anchal -- Anchal Sharma, PhD Postdoctora