Return a subset of a "ddf" object to memory
drSubset(data, subset = NULL, select = NULL, drop = FALSE,
preTransFn = NULL, maxRows = 500000, params = NULL, packages = NULL,
control = NULL, verbose = TRUE)
object to be subsetted -- an object of class "ddf" or "ddo" - in the latter case, need to specify preTransFn
to coerce each subset into a data frame
logical expression indicating elements or rows to keep: missing values are taken as false
expression, indicating columns to select from a data frame
passed on to [ indexing operator
a transformation function (if desired) to applied to each subset prior to division - note: this is deprecated - instead use addTransform
prior to calling divide
the maximum number of rows to return
a named list of objects external to the input data that are needed in the distributed computing (most should be taken care of automatically such that this is rarely necessary to specify)
a vector of R package names that contain functions used in fn
(most should be taken care of automatically such that this is rarely necessary to specify)
parameters specifying how the backend should handle things (most-likely parameters to rhwatch
in RHIPE) - see rhipeControl
and localDiskControl
logical - print messages about what is being done
data frame
# NOT RUN {
d <- divide(iris, by = "Species")
drSubset(d, Sepal.Length < 5)
# }
Run the code above in your browser using DataLab