Description Usage Arguments See Also Examples
load.ffdf
loads ffdf data.frames from the given dir
, that were stored using save.ffdf
. Each column
is stored as with filename <ffdfname>$<colname>.ff. All variables are stored in .RData in the same directory.
The data can be loaded by starting a R session in the directory or by using load.ffdf
.
1 | load.ffdf(dir, envir = parent.frame())
|
dir |
path from where the data should be loaded |
envir |
environment where the stored variables will be loaded into. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.