Re: [R] comparing and combing files

2010-05-11 Thread Assa Yeroslaviz
THX Jim, that works just fine. I had to play with it a little, so taht it fitted my expectations but the idee of using merge was very good. Assa On Tue, May 11, 2010 at 13:55, jim holtman wrote: > ?merge > > Here is what you would do: > > x1 <- read.table('/tmp/list1.txt', header=TRUE, sep='\t

Re: [R] comparing and combing files

2010-05-11 Thread jim holtman
?merge Here is what you would do: x1 <- read.table('/tmp/list1.txt', header=TRUE, sep='\t', as.is=TRUE) x2 <- read.table('/tmp/list2.txt', header=TRUE, sep='\t', as.is=TRUE) combined <- merge(x1, x2, by.x="Probe.Id", by.y="Probe.ID") Unfortunately your data did not have any IDs in common between

[R] comparing and combing files

2010-05-11 Thread Assa Yeroslaviz
Hello, I have two tab-delimited files which I would like to combine. In the first one I have gene IDs (Unique) on column 1 and than various experimental results from microarray analysis (see attached files list1 ) the second arrays have the same genes IDs (more and in a different order, some are