R: Unpacks previously stored ffdf data.frame into a directory

unpack.ffdf {ffbase} | R Documentation

## Unpacks previously stored ffdf data.frame into a directory

### Description

`unpack.ffdf` restores ffdf data.frames into the given `dir`, that were stored using `pack.ffdf`. If `dir` is `NULL` (the default) the data.frames will restored in a temporary directory. if

### Usage

    unpack.ffdf(file, dir = NULL, envir = parent.frame())

### Arguments

`file` | packaged file, zipped or tar.gz.
`dir` | path where the data will be saved and all columns of supplied `ffdf`'s. It will be created if it doesn't exist.
`envir` | the environment where the stored variables should be loaded into.

### See Also

`load.ffdf` `pack.ffdf`

### Examples

    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)

[Package ffbase version 0.13.1 Index]