Save ffdf data.frames in a directory
save.ffdf saves all ffdf data.frames in the given dir. Each column
is stored as with filename <ffdfname>$<colname>.ff. All variables given in "..." are stored in ".RData" in the same directory.
The data can be reloaded by starting a R session in the directory or by using load.ffdf.
Note that calling save.ffdf multiple times for the same directory
will only store the ffdf's that were given in the last call.
save.ffdf( ..., dir = "./ffdb", clone = FALSE, relativepath = TRUE, overwrite = FALSE )
... |
|
dir |
path where .RData file will be saved and all columns of supplied |
clone |
should the ff vectors be |
relativepath |
|
overwrite |
|
When saving in the temporary directory pointed at by getOption("fftempdir"), ff assumes that the
resulting files are to be deleted. Be sure to change the finalizers of the
ff vectors when saving in the temporary directory.
iris.ffdf <- as.ffdf(iris)
td <- tempfile()
# save the ffdf into the supplied directory
save.ffdf(iris.ffdf, dir=td)
# what in the directory?
dir(td)
#remove the ffdf from memory
rm("iris.ffdf")
# and reload the stored ffdf
load.ffdf(dir=td)
tf <- paste(tempfile(), ".zip", sep="")
packed <- pack.ffdf(file=tf, iris.ffdf)
#remove the ffdf from memory
rm("iris.ffdf")
# restore the ffdf from the packed ffdf
unpack.ffdf(tf)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.