Learn R Programming

datadr (version 0.8.6.1)

convert: Convert 'ddo' / 'ddf' Objects

Description

Convert 'ddo' / 'ddf' objects between different storage backends

Usage

convert(from, to, overwrite = FALSE)

Arguments

from

a 'ddo' or 'ddf' object

to

a 'kvConnection' object (created with localDiskConn or hdfsConn) or NULL if an in-memory 'ddo' / 'ddf' is desired

overwrite

should the data in the location pointed to in to be overwritten?

Examples

Run this code
# NOT RUN {
d <- divide(iris, by = "Species")
# convert in-memory ddf to one stored on disk
dl <- convert(d, localDiskConn(tempfile(), autoYes = TRUE))
dl
# }

Run the code above in your browser using DataLab