addPipelineStep {pipeComp}R Documentation

addPipelineStep

Description

Add a step to an existing PipelineDefinition

Usage

addPipelineStep(object, name, after = NULL, slots = list())

Arguments

object

A PipelineDefinition

name

The name of the step to add

after

The name of the step after which to add the new step. If NULL, will add the step at the beginning of the pipeline.

slots

A optional named list with slots to fill for that step (i.e. 'functions', 'evaluation', 'aggregation', 'descriptions' - will be parsed)

Value

A PipelineDefinition

See Also

PipelineDefinition, PipelineDefinition-methods

Examples

pd <- mockPipeline()
pd
pd <- addPipelineStep(pd, name="newstep", after="step1", 
                      slots=list(description="Step that does nothing..."))
pd

[Package pipeComp version 1.2.0 Index]