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
bject: [R] Help with making Loop > > 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 columns on Gene1 and Gene2 are empty). I have two separate tables >

[R] Help with making Loop

2015-05-01 Thread Hadi Fazal
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 columns on Gene1 and Gene2 are empty). I have two separate tables for the genes which contain the Unique Subject ID in one column and