Description Usage Arguments Details Value Author(s) See Also Examples
Persist a transformed 'ddo' or 'ddf' object by making a deferred transformation permanent
1 |
x |
an object of class 'ddo' or 'ddf' |
output |
a "kvConnection" object indicating where the output data should reside (see |
overwrite |
logical; should existing output location be overwritten? (also can specify |
control |
parameters specifying how the backend should handle things (most-likely parameters to |
When a transformation is added to a ddf/ddo via addTransform
, the transformation is deferred until
the some action is taken with the data (e.g. a call to recombine
). See the documentation of
addTransform
for more information about the nature of transformations.
Calling drPersist()
on the ddo/ddf makes the transformation permanent (persisted). In the case of a local disk
connection (via localDiskConn
) or HDFS connection (via hdfsConn
), the transformed data
are written to disk.
a 'ddo' or 'ddf' object with the transformation evaluated on the data
Ryan Hafen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | bySpecies <- divide(iris, by = "Species")
# Create the transformation and add it to bySpecies
bySpeciesSepal <- addTransform(bySpecies, function(x) x[,c("Sepal.Length", "Sepal.Width")])
# Note the transformation is 'pending' a data action
bySpeciesSepal
# Make the tranformation permanent (persistent)
bySpeciesSepalPersisted <- drPersist(bySpeciesSepal)
# The transformation no longer pending--but a permanent part of the new ddo
bySpeciesSepalPersisted
bySpeciesSepalPersisted[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.