Description Usage Arguments Value Examples
Extract the index chosen in an BoolParam
1 | singleChoiceParamInd(parameters, name)
|
parameters |
The parameters object (see |
name |
The name of the parameter |
The selected index
1 2 3 4 5 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.