Learn R Programming

ffbase (version 0.6-2)

ffdfsave: Save a ffdf data.frame in directory

Description

ffdfsave saves a ffdf data.frame in the given filename (.rdata) and stores all ff columns in a subdirectory with the name "_ff". Each column will be named ".ff". A saved ffdf data.frame is a .rdata file and can be loaded with the load function Deprecated, the preferred method is save.ffdf

Usage

ffdfsave(dat, filename)

Arguments

dat
ffdf data.frame, to be saved
filename
path where .rdata file will be save and _ff directory will be created

Examples

Run this code
data(iris)

# create a ffdf data.frame from standard iris data set
ffiris <- as.ffdf(iris)
head(ffiris[,])

.fn <- tempfile()
ffdfsave(ffiris, .fn)

# clear everything
rm(list=ls())
ls()

# load ffdf into environment
load(file=.fn)
# and back in business!
head(ffiris[,])

Run the code above in your browser using DataLab