singleChoiceParamValue: Single choice value

View source: R/params.R

singleChoiceParamValueR Documentation

Single choice value

Description

Extract the value selected in a SingleChoiceParam.

Usage

singleChoiceParamValue(parameters, name)

Arguments

parameters

The parameters object (see parseParameters)

name

The name of the parameter

Value

The string representing the value

Examples

tmp <- tempfile(fileext = ".xml")
write('<SingleChoiceParam Name="test_single">\n<Value>1</Value>\n
<Values>\n<Item>A</Item>\n<Item>B</Item>\n</Values>\n</SingleChoiceParam>', file=tmp)
parameters <- parseParameters(tmp)
singleChoiceParamValue(parameters, "test_single")

jdrudolph/PerseusR documentation built on Sept. 10, 2022, 3:27 p.m.