> 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
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
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
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
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,
5 matches
Mail list logo