Re: [R] Can't read/write to _nonfi
# sink (sinkFile) cat ("\n\n*** Step 2 : Restricted population and sample correlation based on cut off point = ", cutoffpoint, " on x axis \n\n") # calculate sample mean of x meanx1 = mean(retx) stdx = stdsamplex(retx,length(retx)) # set first time through the loop equals to true firstTime <- 1 newxindex <- 0; for (i in 1:length(retx)) { zscoreofx = zscoreforx(retx[i], meanx1, stdx) #cat ("X ith = ", x[i]) #cat ("ZScore for x = ", ZScoreofX) ### transform the z score to Pnorm which will be used to compare with the left of the cut off point areaconfidenceinterval = pnormz(zscoreofx) # Applied of cut off point on X ## #cat ("Area of confident interval ", AreaConfidenceInterval) result <- isarealeftofcutpoint(areaconfidenceinterval,cutoffpoint) Getting result of new element in vector of x , # and new a new element in vector of y after applying cut off point on x axis ### #cat ("Result is ", result) if (result == 1) { if (firstTime == 1) { index <- 1 firstTime <- 0 } tempx <- x[i] newx[index] <- tempx tempy <- y[i] newy[index] <- tempy # cat("X = ", tempX, " ; Y = ", tempY, "\n\n") # cat("Index = ", index, " ,NewX = ", NewX[index],", NewY = ", NewY[index], "\n\n\n") index <- index + 1 newxindex <- index } cat ("\n\n Element = " , i, " ; value = ", x[i], " ; Zscore value = ", zscoreofx, "; Pnorm value = ", areaconfidenceinterval, " ; Included = ", result, "\n") } newxx <- rep (0, newxindex -1) newyy <- rep (0, newxindex - 1) for (mycnt in 1: newxindex - 1) { newxx [mycnt] <- newx [mycnt] newyy [mycnt] <- newy [mycnt] } vectornewxy <- data.frame (newxx,newyy,newxindex - 1) cutoffsize [minh] <- newxindex -1 cat ("\n\n") print (vectornewxy) # check the sample correlation between x and y,and scatter plot ##print(paste("correlation", cor(NewY, NewX))) correlationsampleaftercutoff <- findcorrelationofsamplesizetaftercut(newxx,newyy,length(newxx)) cat("\n\ncorrelation of sample after cut off point is ", correlationsampleaftercutoff) sink () #hist(newxx) #hist(newyy) #plot(newxx, newyy) dev.off() fishercor <- fishercorrelation (correlationsampleaftercutoff) sink (sinkFile) cat ("\n\n*** Step 3 : Fisher correlation applied to sample correlation of the cut off point = ", " on x axis \n\n") cat ("\n\n Fisher correlation", fishercor,"\n") fisherval [minh] <- fishercor sink () sink (sinkFile) cat ("\n\n*** END OF LOOP = ", minh, " \n\n") cat ("\n\n*** END OF LOOP = ", minh, " \n\n") sink () } close(sinkFile) Minh prgram after changed of open , close of sinkFile ### ________________ From: William Dunlap [via R] [ml-node+2331833-526419113-138...@n4.nabble.com] Sent: Thursday, August 19, 2010 1:33 PM To: Dung Tran Subject: Re: Can't read/write to _nonfi Min, For S+-specific questions the S-news mailing list would be better. [hidden email] Unlike R, S+ stores its data objects in files, one file per object. The ___nonfi (___nonfiles) file contains a mapping for object names to file names, for those objects whose names cannot be unambiguously used as file names. The copies of the error messages look garbled to me. They are definitely missing some characters and I don't see the "Can't access to ..." message in the S+ source code, but perhaps I'm not looking in the right version > Can' access to file _nonfi > Can't create file for assigning "last.dump" > ("C:/WORKSPACE/DUNG/.Data/___bd40" What version of S+ are you using and what are the precise error messages? Do you own the C:/WORKSPACE/DUNG directory or is it someone else's? If it is someone else's and it is sufficiently protected, you may not be able write files into it. Can you create any other data objects? E.g., can you successfully execute the following? qaz <- 1:10 print(qaz) and Q.A.Z. <- log(qaz) print(Q.A.Z) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: [hidden email] > [mailto:[hidden ema
Re: [R] Can't read/write to _nonfi
], meanx1, stdx) #cat ("X ith = ", x[i]) #cat ("ZScore for x = ", ZScoreofX) ### transform the z score to Pnorm which will be used to compare with the left of the cut off point areaconfidenceinterval = pnormz(zscoreofx) # Applied of cut off point on X ## #cat ("Area of confident interval ", AreaConfidenceInterval) result <- isarealeftofcutpoint(areaconfidenceinterval,cutoffpoint) Getting result of new element in vector of x , # and new a new element in vector of y after applying cut off point on x axis ### #cat ("Result is ", result) if (result == 1) { if (firstTime == 1) { index <- 1 firstTime <- 0 } tempx <- x[i] newx[index] <- tempx tempy <- y[i] newy[index] <- tempy # cat("X = ", tempX, " ; Y = ", tempY, "\n\n") # cat("Index = ", index, " ,NewX = ", NewX[index],", NewY = ", NewY[index], "\n\n\n") index <- index + 1 newxindex <- index } cat ("\n\n Element = " , i, " ; value = ", x[i], " ; Zscore value = ", zscoreofx, "; Pnorm value = ", areaconfidenceinterval, " ; Included = ", result, "\n") } newxx <- rep (0, newxindex -1) newyy <- rep (0, newxindex - 1) for (mycnt in 1: newxindex - 1) { newxx [mycnt] <- newx [mycnt] newyy [mycnt] <- newy [mycnt] } vectornewxy <- data.frame (newxx,newyy,newxindex - 1) cutoffsize [minh] <- newxindex -1 cat ("\n\n") print (vectornewxy) # check the sample correlation between x and y,and scatter plot ##print(paste("correlation", cor(NewY, NewX))) correlationsampleaftercutoff <- findcorrelationofsamplesizetaftercut(newxx,newyy,length(newxx)) cat("\n\ncorrelation of sample after cut off point is ", correlationsampleaftercutoff) sink () #hist(newxx) #hist(newyy) #plot(newxx, newyy) dev.off() fishercor <- fishercorrelation (correlationsampleaftercutoff) sink (file= "comp.dat",append=T) cat ("\n\n*** Step 3 : Fisher correlation applied to sample correlation of the cut off point = ", " on x axis \n\n") cat ("\n\n Fisher correlation", fishercor,"\n") fisherval [minh] <- fishercor sink () sink (file= "comp.dat",append=T) cat ("\n\n*** END OF LOOP = ", minh, " \n\n") cat ("\n\n*** END OF LOOP = ", minh, " \n\n") sink () } ## End of Minh Splus code # 3) Yes, i own the C:/DOCUMENTS AND SETTINGS/UMKTDM.EUH/WORKSPACE/DUNG/.Data/ directory and any file underneath it. 4) After running your program , i got the following output > qaz <- 1:10 > print(qaz) [1] 1 2 3 4 5 6 7 8 9 10 > Q.A.Z. <- log(qaz) > print(Q.A.Z) Problem: Object "Q.A.Z" not found Error during wrapup: Can't create file for assigning "last.dump" ("C:/DOCUMENTS AND SETTINGS/UMKTDM.EUH/WORKSPACE/DUNG/.Data/___60c0") Hope i give you enough information. Please let me know if you need me to do anything. Thank you again, Minh Tran From: William Dunlap [via R] [ml-node+2331833-526419113-138...@n4.nabble.com] Sent: Thursday, August 19, 2010 1:33 PM To: Dung Tran Subject: Re: Can't read/write to _nonfi Min, For S+-specific questions the S-news mailing list would be better. [hidden email] Unlike R, S+ stores its data objects in files, one file per object. The ___nonfi (___nonfiles) file contains a mapping for object names to file names, for those objects whose names cannot be unambiguously used as file names. The copies of the error messages look garbled to me. They are definitely missing some characters and I don't see the "Can't access to ..." message in the S+ source code, but perhaps I'm not looking in the right version > Can' access to file _nonfi > Can't create file for assigning "last.dump" > ("C:/WORKSPACE/DUNG/.Data/___bd40" What version of S+ are you using and what are the precise error messages? Do you own the C:/WORKSPACE/DUNG directory or is it someone else's? If it is someone else's and it is sufficiently protected, you may not be able write files into it. Can you create any other data objects? E.g., can
Re: [R] Can't read/write to _nonfi
Min, For S+-specific questions the S-news mailing list would be better. s-n...@wubios.wustl.edu Unlike R, S+ stores its data objects in files, one file per object. The ___nonfi (___nonfiles) file contains a mapping for object names to file names, for those objects whose names cannot be unambiguously used as file names. The copies of the error messages look garbled to me. They are definitely missing some characters and I don't see the "Can't access to ..." message in the S+ source code, but perhaps I'm not looking in the right version > Can' access to file _nonfi > Can't create file for assigning "last.dump" > ("C:/WORKSPACE/DUNG/.Data/___bd40" What version of S+ are you using and what are the precise error messages? Do you own the C:/WORKSPACE/DUNG directory or is it someone else's? If it is someone else's and it is sufficiently protected, you may not be able write files into it. Can you create any other data objects? E.g., can you successfully execute the following? qaz <- 1:10 print(qaz) and Q.A.Z. <- log(qaz) print(Q.A.Z) Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of minh > Sent: Thursday, August 19, 2010 11:48 AM > To: r-help@r-project.org > Subject: [R] Can't read/write to _nonfi > > > Good afternoon, >Hope you all have a wonderful day. I am glad to be here. > Hope you could > help me with the following errors that i have been trying to > figure it all > out since last week. > > I am using Splus from Insightful, and as i read, R and > Splus are very > similar. So hope you could help me. > > > I have been continously received these error messages after > i ran my small > program for couple of times. > > > > Can' access to file _nonfi > Can't create file for assigning "last.dump" > ("C:/WORKSPACE/DUNG/.Data/___bd40" > > > > It is frustrating since the program is so small , and as i > look into my > project, the _nonfi is there under the data folder. So i > don't know what the > compiler is complained about. Since i am new to Splus > language, I have no > clue what i need to do. > > for (i in 1: 1) > > { > > x <- rnorm (1000); > > y <- rnorm (1000) > > newx <- x > > newy <- y > > hist (newx) > > hist (newy) > > > } > > > > > > > > If you happen to know what i need to do, please help me. > > Thank you so much, > Min > -- > View this message in context: > http://r.789695.n4.nabble.com/Can-t-read-write-to-nonfi-tp2331 707p2331707.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. > __ 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.
Re: [R] Can't read/write to _nonfi
I don't think I understand what the problem is... The code that you provided works just fine without the for loop statement. as for the can't access... The example that you provided doesn't address this. Unless I am totally misunderstanding. R is an interpreted language not compiled. Please, as to the instructions appended to the end of each email, provide a minimal self-contained reproducible example. Stephen On Thu, Aug 19, 2010 at 1:48 PM, minh wrote: > > Good afternoon, > Hope you all have a wonderful day. I am glad to be here. Hope you could > help me with the following errors that i have been trying to figure it all > out since last week. > > I am using Splus from Insightful, and as i read, R and Splus are very > similar. So hope you could help me. > > > I have been continously received these error messages after i ran my small > program for couple of times. > > > > Can' access to file _nonfi > Can't create file for assigning "last.dump" > ("C:/WORKSPACE/DUNG/.Data/___bd40" > > > > It is frustrating since the program is so small , and as i look into my > project, the _nonfi is there under the data folder. So i don't know what the > compiler is complained about. Since i am new to Splus language, I have no > clue what i need to do. > > for (i in 1: 1) > > { > > x <- rnorm (1000); > > y <- rnorm (1000) > > newx <- x > > newy <- y > > hist (newx) > > hist (newy) > > > } > > > > > > > > If you happen to know what i need to do, please help me. > > Thank you so much, > Min > -- > View this message in context: > http://r.789695.n4.nabble.com/Can-t-read-write-to-nonfi-tp2331707p2331707.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. > -- Stephen Sefick | Auburn University | | Department of Biological Sciences | | 331 Funchess Hall | | Auburn, Alabama | | 36849 | |___| | sas0...@auburn.edu | | http://www.auburn.edu/~sas0025 | |___| Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis __ 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.
[R] Can't read/write to _nonfi
Good afternoon, Hope you all have a wonderful day. I am glad to be here. Hope you could help me with the following errors that i have been trying to figure it all out since last week. I am using Splus from Insightful, and as i read, R and Splus are very similar. So hope you could help me. I have been continously received these error messages after i ran my small program for couple of times. Can' access to file _nonfi Can't create file for assigning "last.dump" ("C:/WORKSPACE/DUNG/.Data/___bd40" It is frustrating since the program is so small , and as i look into my project, the _nonfi is there under the data folder. So i don't know what the compiler is complained about. Since i am new to Splus language, I have no clue what i need to do. for (i in 1: 1) { x <- rnorm (1000); y <- rnorm (1000) newx <- x newy <- y hist (newx) hist (newy) } If you happen to know what i need to do, please help me. Thank you so much, Min -- View this message in context: http://r.789695.n4.nabble.com/Can-t-read-write-to-nonfi-tp2331707p2331707.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.