Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-08 Thread Vivek Das
Hi Arun, I am still facing trouble as I can see the data output is identical for all rows when I am using this merge function. It seems that since in my data2 which I have provided I have not given you the exact genes I have. There are likely to be repeatations of ID in both the files but the pro

Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-07 Thread arun
HI, Assuming that "out_dat.txt" is the output you expected.  dat1<- read.table("data1.txt",header=TRUE,stringsAsFactors=FALSE) dat2<- read.table("data2.txt",header=TRUE,stringsAsFactors=FALSE) out_dat<- read.table("out_data.txt",header=TRUE,stringsAsFactors=FALSE)  out_dat2<-merge(dat1[,1:4],dat2

Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-07 Thread Vivek Das
HI Arun, My data sets are as in the provided files. I am providing the sample files. I guess this will give a better idea to the type of working I want to do with the two files and the kind or script am trying to write. Hope you can give me some suggestions regarding this. I am new to R so having

Re: [R] R help for creating expression data of Differentially expressed genes

2013-05-07 Thread arun
Hi Vivek, May be this helps: set.seed(35)  dat1<- cbind(ID=1:8, as.data.frame(matrix(sample(1:50,8*7,replace=TRUE),ncol=7))) set.seed(38) dat2<- cbind(ID= sample(1:20,8,replace=FALSE), as.data.frame(matrix(sample(1:50,8*33,replace=TRUE),ncol=33))) colnames(dat2)[-1]<-gsub("V","X",colnames(dat2)