[R] Reshaping columns

2012-06-09 Thread efulas
Dear all, I have a data frame with 2 columns and 102500 rows. The data looks like below V1V2 809811... 9099001100... 0023110011... 654511... . . . . . . . . . . I want to split the colu

Re: [R] Repeating

2012-05-07 Thread efulas
Thank you for replies. I sort out the problem by defining the reassign matrix. Best Wishes, efulas -- View this message in context: http://r.789695.n4.nabble.com/Repeating-tp4614371p4615072.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Repeating

2012-05-07 Thread efulas
By the way, my "for" function is below, I can't find the mistake rand.max.t<- function(n){ f<-rep(NA,n) for (i in 1:n) { reassign[i]<-matrix(c(sample(id),data1),203,3) new.data<-reassign[,1] random.cas=reassign[new.data==0,2:3] random.con=reassign[new.data==1,2:3] f<- list(x=random.cas[,1],y=ra

[R] Repeating

2012-05-07 Thread efulas
Dear All, I have a codes which calculates the result of Ripley's K function of my data. I want to repeat this process 999 times. However, i am getting an error when i use the "for i in" function. Is there any way to repeat this analysis 999 times. Here are the codes i used ; data4 <- matrix(c(s

Re: [R] R Large Dataset Problem

2012-04-13 Thread efulas
I am using the codes below, options(max.print=5.5E5) x=rep(1,1052) b=read.fwf(file="efetez.binary", widths=c(6,x),header=FALSE) and i get " C stack usage is too close to the limit" this error. I want to get my data like ; molecul id v1 v2 v3 . 190

Re: [R] R Large Dataset Problem

2012-04-13 Thread efulas
Thank you very much for your helps guys. Both message help me to run the data in R. However, R is omitting many columns from my data. Am i missing something? Many Thanks -- View this message in context: http://r.789695.n4.nabble.com/R-Large-Dataset-Problem-tp4554469p4554698.html Sent from the

[R] R Large Dataset Problem

2012-04-13 Thread efulas
Dear All, I have a problem with my data. First problem is that my data is really large and R is omitting some columns from my data. Is there any way to read the whole data without omitting. Another problem is that my data have 102k columns and each column have active or inactive molecules. The da