select: Select variable based on condition

Description Usage Arguments Details Value Author(s) Examples

View source: R/shinyApp.R

Description

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

Usage

1
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

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

MetCirc documentation built on Nov. 8, 2020, 8:26 p.m.