select: Select variable based on condition

View source: R/shinyApp.R

selectR 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(1), 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)


tnaake/MetCirc documentation built on Nov. 3, 2024, 11:16 a.m.