ProcessingStep-class {MSnbase} | R Documentation

## Simple processing step class

### Description

The `ProcessingStep` class is a simple object to encapsule all relevant information of a data analysis processing step, i.e. the function name and all arguments.

### Details

Objects of this class are mainly used to record all possible processing steps of an `OnDiskMSnExp` object for later lazy execution.

### Objects from the Class

Objects can be created by calls of the form `new("ProcessingStep",...)` or using the `ProcessingStep` constructor function.

### Slots

`FUN`:

  The function name to be executed as a character string.

`ARGS`:

  A named `list` with all arguments to the function.

### Methods and functions

executeProcessingStep(object, ...)

  Execute the processing step `object`. Internally this calls `do.call` passing all arguments defined in the `ProcessingStep` `object` along with potential additional arguments in `...` to the function `object@FUN`.

### Extends

Class `"Versioned"`, directly.

### Author(s)

Johannes Rainer <johannes.rainer@eurac.edu>

### See Also

`OnDiskMSnExp`

### Examples

    ## Define a simple ProcessingStep
    procS <- ProcessingStep("sum", list(c(1, 3, NA, 5), na.rm= TRUE))

    executeProcessingStep(procS)

[Package MSnbase version 2.10.1 Index]