Learn R Programming

PerseusR (version 0.3.4)

singleChoiceParamInd: Single choice index

Description

Extract the index chosen in an BoolParam

Usage

singleChoiceParamInd(parameters, name)

Arguments

parameters

The parameters object (see parseParameters)

name

The name of the parameter

Value

The selected index

Examples

Run this code
# NOT RUN {
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)
singleChoiceParamInd(parameters, "test_single")
# }

Run the code above in your browser using DataLab