reduce_by {drake} | R Documentation |
Reduce multiple groupings of targets
![[Deprecated]](../help/figures/lifecycle-deprecated.svg)
Description
Deprecated on 2019-05-16. Use drake_plan()
transformations instead. See
https://books.ropensci.org/drake/plans.html#large-plans
for the details.
Usage
reduce_by(
plan,
...,
prefix = "target",
begin = "",
op = " + ",
end = "",
pairwise = TRUE,
append = TRUE,
filter = NULL,
sep = "_"
)
Arguments
plan |
Workflow plan data frame of prespecified targets. |
... |
Symbols, columns of |
prefix |
Character, prefix for naming the new targets.
Suffixes are generated from the values of the columns
specified in |
begin |
Character, code to place at the beginning of each step in the reduction. |
op |
Binary operator to apply in the reduction |
end |
Character, code to place at the end of each step in the reduction. |
pairwise |
Logical, whether to create multiple
new targets, one for each pair/step in the reduction ( |
append |
Logical. If |
filter |
An expression like you would pass to |
sep |
Character scalar, delimiter for creating the names of new targets. |
Details
Perform several calls to reduce_plan()
based on groupings from columns in the plan,
and then row-bind the new targets to the plan.
Value
A workflow plan data frame.