Re: [Rd] Use logical expresion on ff object

2011-08-19 Thread Krystian Radlak
It's not corect. Vector with length 15*10^6 you could store in memory without ff packages. For vector 15*10^7 k=bit(15*10^7) a=ff(2,15*10^7) system.time(k<-a[,chunk(1,length.ff(a),1e4)]<1) Error: cannot allocate vector of size 572.2 Mb In addition: Warning messages: 1: In system.time(k <- a[

Re: [Rd] Use logical expresion on ff object

2011-08-18 Thread Krystian Radlak
Yes, it's necessery. Operator < is not definied in ff packages. str(a<1) logi(0) Mayby it's possible to do the same thing easier... -- View this message in context: http://r.789695.n4.nabble.com/Use-logical-expresion-on-ff-object-tp3752127p3752673.html Sent from the R devel mailing list archiv

[Rd] Use logical expresion on ff object

2011-08-18 Thread Krystian Radlak
I want to do operation with ff vector from packages ff like simple operation in R like this. (I have read data from file) Example a=1:10 b=a[a>5] how to do this operation with ff packages: Example : a=ff(1, length=15*10^7) I know that I could get logical vector like this: k=bit(15*10^7) # from

Re: [Rd] Saving data into a text or CSV file using foreach/doSNOW

2011-07-24 Thread Krystian Radlak
I solved this problem using Sys.getpid() function. zz <- file(paste(cmd_args[7],Sys.getpid(),".txt",sep=""), "at") write(rr,file=zz) close(zz) -- View this message in context: http://r.789695.n4.nabble.com/Saving-data-into-a-text-or-CSV-file-using-foreach-doSNOW-tp3683155p3690132.html Sent from

[Rd] Saving data into a text or CSV file using foreach/doSNOW

2011-07-21 Thread Krystian Radlak
Dear list, I am using the foreach/doSNOW packages. I want to compute some data parallel and save results in every iteration into a text or CSV file, but then I see in file there are some errors (some data is not saved to file and there are empty lines). I have tested every function to append dat