Re: [R] merging files with different structures

2009-02-17 Thread Grant Gillis
> Hello list, > > I am sorry for the previous half post. I accidentily hit send. Thanks > again in advance for any help. > > I have many (approx 20) files that I have merged. Each data set contains > rows for individuals and data in 2 - 5 columns (depending upon which data > set). The individua

[R] merging files with different structures

2009-02-17 Thread Grant Gillis
Hello list, Thanks in advance for any help. I have many (approx 20) files that I have merged. For example d1<-read.csv("AlleleReport.csv") d2<-read.csv("AlleleReport.csv") m1 <- merge(d1, d2, by = c("IND", intersect(colnames(d1), colnames(d2))), all = TRUE) m2 <- merge(m1, d3, by = c("IND",