select {MetCirc} | R Documentation

## Select variable based on condition

### Description

'select' returns 'mz', 'rt' or 'clust' depending on 'condition'.

### Usage

    select(condition, mz, rt, clust)

### Arguments

`condition` | 'character', either '"mz"', '"retentionTime"' or '"clustering"'
`mz` | object to return if 'condition == "mz"'
`rt` | object to return if 'condition == "retentionTime"'
`clust` | object to return if 'condition == "clustering"'

### Details

Helper function for 'shinyCircos', 'replayPlotOrder' and 'replayPlotAdd'-

### Value

'mz', 'rt' or 'clust' depending on condition

### Author(s)

Thomas Naake thomasnaake@googlemail.com

### Examples

    mz <- 1
    rt <- 2
    clust <- 3
    MetCirc:::select(condition="mz", mz=mz, rt=rt, clust=clust)

[Package MetCirc version 1.18.0 Index]