R: Moves all the columns of ffdf data.frames into a directory

move.ffdf {ffbase} | R Documentation

## Moves all the columns of ffdf data.frames into a directory

### Description

`move.ffdf` saves all columns into the given `dir`. Each column is stored as with filename <ffdfname>$<colname>.ff. If you want to store the data for an other session please use `save.ffdf` or `pack.ffdf`

### Usage

    move.ffdf(
      x,
      dir = ".",
      name = as.character(substitute(x)),
      relativepath = FALSE
    )

### Arguments

`x` | `ffdf` data.frame to be moved
`dir` | path were all of supplied `ffdf`'s, will be saved. It will be created if it doesn't exist.
`name` | name to be used as data.frame name
`relativepath` | If `TRUE` the `ffdf` will contain relativepaths. Use with care...

### See Also

`load.ffdf` `save.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]