Learn R Programming

drake (version 4.2.0)

expand: Function expand

Description

Expands a workflow plan data frame by duplicating rows. This generates multiple replicates of targets with the same commands.

Usage

expand(plan, values = NULL)

Arguments

plan

workflow plan data frame

values

values to expand over. These will be appended to the names of the new targets.

Value

an expanded workflow plan data frame

Examples

Run this code
# NOT RUN {
datasets <- plan(
  small = simulate(5),
  large = simulate(50))
expand(datasets, values = c("rep1", "rep2", "rep3"))
# }

Run the code above in your browser using DataLab