Learn R Programming

MenuCollection (version 1.2)

inpboxr2: Input Box with two radio boxes

Description

Input box for a choice between two options

Usage

inpboxr2(vlabel, inp)

Arguments

vlabel
character vector with the text label of the box
inp
character vector with the initialization

Value

Details

See example for the element order in the vectors : inpboxr2.png To get the menu, just use the following code: vlabel<-c('options','option1','option2') inp<-c('TRUE','FALSE') ans<-inpboxr2(vlabel,inp)

References

Lawrence M.F.,Verzani J., (2012) Programming Graphical User Interfaces in R,CRC Press Taylor & Francis Group