Hi Manisha, I didn't run your dataset as I am on the way to college. But, from the error reported, I think it will be due to some missing combinations in one of the dataset. For ex. if you run my previous code without removing CEBPA: ie. mat1<- combn(gset[,1],2)
lst2<-lapply(split(mat1,col(mat1)),function(x) {x1<-join_all(lst1[x],by="patient_id",type="inner");x1["patient_id"] } ) #Error: All inputs to rbind.fill must be data.frames So, check whether all the combinations are available in the `lst1`. 2. I will get back to you once I run it. A.K. ________________________________ From: Manisha <manishab...@gmail.com> To: arun <smartpink...@yahoo.com> Sent: Friday, July 26, 2013 11:09 AM Subject: Re: Pairwise comparison between columns, logic Hi Arun, I ran the script on a larger dataset and I seem to be running into this following error: Error: All inputs to rbind.fill must be data.frames after the step; lst2<-lapply(split(mat1,col(mat1)),function(x) {x1<-join_all(lst1[x],by="firehose_patient_id",type="inner");x1["firehose_patient_id"]}) I tried a few things to solve the issue but I am not able to. The format of input files and data are same as in the code you posted. Could you suggest me something? I have attached my input files on which I am trying to run the code. See attached code as well. Minor changes have been made by me. 2. I have another question. From your code how do also capture those pairs of names that donot have any common patient id? Thanks again, -M On Fri, Jul 26, 2013 at 9:29 AM, arun <smartpink...@yahoo.com> wrote: Hi M, >No problem. >Regards, >Arun > > > > >----- Original Message ----- >From: "manishab...@gmail.com" <manishab...@gmail.com> >To: smartpink...@yahoo.com >Cc: >Sent: Friday, July 26, 2013 9:27 AM >Subject: Re: Pairwise comparison between columns, logic > >Thanks for the code. It is elegant and does what I need. Learnt some new >things. >-M > > >_____________________________________ >Sent from http://r.789695.n4.nabble.com > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.