Learn R Programming

drake (version 4.2.0)

analyses: Function analyses

Description

Generate a workflow plan data frame to analyze multiple datasets using multiple methods of analysis.

Usage

analyses(plan, datasets)

Arguments

plan

workflow plan data frame of analysis methods. The commands in the command column must have the ..dataset.. wildcard where the datasets go. For example, one command could be lm(..dataset..). Then, the commands in the output will include lm(your_dataset_1), lm(your_dataset_2), etc.

datasets

workflow plan data frame with instructions to make the datasets.

Value

an evaluated workflow plan data frame of analysis instructions

See Also

summaries, make, plan

Examples

Run this code
# NOT RUN {
datasets <- plan(
  small = simulate(5),
  large = simulate(50))
methods <- plan(
  regression1 = reg1(..dataset..),
  regression2 = reg2(..dataset..))
analyses(methods, datasets = datasets)
# }

Run the code above in your browser using DataLab