Re: [R] Help with making Loop

2015-05-02 Thread Mark Sharp
Fazal, I am not sure what you want, but I have guessed. I have tried to provide a straight forward simplistic solution. If you examine the intermediate results, I think what is being done will be clear. Mark Michael Dewey’s suggestion to look at merge is excellent. You may also need to look

Re: [R] Help with making Loop

2015-05-02 Thread Michael Dewey
Dear Fazal I think part of your problem can be addressed with merge go ?merge at the R prompt On 01/05/2015 21:05, Hadi Fazal wrote: Hi everyone, I am a real beginner to R and have probably a very naive issue. I've a small data frame with three columns: Unique Sample ID, Gene 1 and Gene 2 (the

Re: [R] Help with making Loop

2015-05-01 Thread John Kane
Hi Fazal, In order to help you we probably need some sample data. Any code you have been trying is also probably useful The png is helpful but it is much better to supply the actual data or a good sample of it). The best way to supply data to R-help is to use the dput() function. See ?dpu