Learn R Programming

drake (version 4.2.0)

gather: Function gather

Description

Create a new workflow plan data frame with a single new target. This new target is a list, vector, or other aggregate of a collection of existing targets in another workflow plan data frame.

Usage

gather(plan = NULL, target = "target", gather = "list")

Arguments

plan

workflow plan data frame of prespecified targets

target

name of the new aggregated target

gather

function used to gather the targets. Should be one of list(...), c(...), rbind(...), or similar.

Value

workflow plan data frame for aggregating prespecified targets

Examples

Run this code
# NOT RUN {
datasets <- plan(
  small = simulate(5),
  large = simulate(50))
gather(datasets, target = "my_datasets")
gather(datasets, target = "aggregated_data", gather = "rbind")
# }

Run the code above in your browser using DataLab