Description Usage Arguments Value Author(s) See Also Examples
Filter a 'ddo' or 'ddf' object by selecting key-value pairs that satisfy a logical condition
1 2 |
x |
an object of class 'ddo' or 'ddf' |
filterFn |
function that takes either a key-value pair (as two arguments) or just a value (as a single argument) and returns either |
output |
a "kvConnection" object indicating where the output data should reside (see |
overwrite |
logical; should existing output location be overwritten? (also can specify |
params |
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) |
packages |
a vector of R package names that contain functions used in |
control |
parameters specifying how the backend should handle things (most-likely parameters to |
a 'ddo' or 'ddf' object
Ryan Hafen
1 2 3 4 5 6 7 8 | # Create a ddf using the iris data
bySpecies <- divide(iris, by = "Species")
# Filter using only the 'value' of the key/value pair
drFilter(bySpecies, function(v) mean(v$Sepal.Width) < 3)
# Filter using both the key and value
drFilter(bySpecies, function(k,v) k != "Species=virginica" & mean(v$Sepal.Width) < 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.