[R] R functions

sujitha viritha.k at gmail.com
Fri Sep 16 22:22:04 CEST 2011


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.



More information about the R-help mailing list