Re: [R] questions on the ff package

2009-11-27 Thread Jens Oehlschlägel
> I wonder how efficiently it is to do the following command on a frequent > basis. > nrow(matFF) <- nrow(matFF)+1 Obviously there is overhead (closing file, enlarging file, openeing file). I recommend you measure yourself whether this is acceptable for you. > no large file copying is needed ea

Re: [R] questions on the ff package

2009-11-26 Thread Hao Cen
ot; [mailto:oehl_l...@gmx.de] Sent: Wednesday, November 25, 2009 8:04 AM To: h...@andrew.cmu.edu Cc: r-h...@lists.r-project.org Subject: [R] questions on the ff package Jeff, > I need to save a matrix as a memory-mapped file and load it back later. > To save the matrix, I use > mat = matr

[R] questions on the ff package

2009-11-25 Thread Jens Oehlschlägel
Jeff, > I need to save a matrix as a memory-mapped file and load it back later. > To save the matrix, I use > mat = matrix(1:20, 4, 5) > matFF = ff(mat, dim=dim(mat), filename="~/a.mat" > , overwrite=TRUE, dimnames = dimnames(mat)) # This stores the data in an ff file, # but not the metadata in

Re: [R] questions on the ff package

2009-11-25 Thread Ramon Diaz-Uriarte
Dear Jeff, This is not exactly what you are asking, but what I do is close the object, save it as RData, and then when I need to load the RData. The RData objects themselves are very small. Best, R. On Wed, Nov 25, 2009 at 2:28 AM, Hao Cen wrote: > Hi, > > I have two questions on using the f

[R] questions on the ff package

2009-11-24 Thread Hao Cen
Hi, I have two questions on using the ff package and wonder if anyone who used ff can share some thoughts. I need to save a matrix as a memory-mapped file and load it back later. To save the matrix, I use mat = matrix(1:20, 4, 5) matFF = ff(mat, dim=dim(mat), filename="~/a.mat", overwrite=TRUE,