Hi, Thanks for your reply. I converted using your idea and since I have big file I thought reading as a table would help. This is just snippet of my data. I have around 150 samples so wrting s in that form would be tedious. >m<-read.table("test.txt",sep='\t',header=TRUE,colClasses=c('character','integer','integer','numeric','numeric')) >s<-data.frame(c(rle(m$Sample1)[[2]],rle(m$Sample2)[[2]]),c(rle(m$Sample1)[[1]],rle(m$Sample2)[[1]])) >names(s)=c("Values","Probes") >s Values Probes 1 0.00 4 2 -0.43 4 3 0.00 2 4 0.00 2 5 -0.35 6 6 0.00 2 I will work on integrating the rest of the columns.Please suggest for the above issue. Thanks, Suji
-- View this message in context: http://r.789695.n4.nabble.com/R-functions-tp3816748p3819064.html Sent from the R help mailing list archive at 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.