Learn R Programming

MenuCollection (version 1.2)

inpboxc2: Input Box with two combo boxes

Description

Input box for selection from two lists

Usage

inpboxc2(vlabel, vcombo1, vcombo2, inp)

Arguments

vlabel
character vector with the text label of the box
vcombo1
character vector with the text label of the first combo
vcombo2
character vector with the text label of the first combo
inp
character vector with the initialization

Value

Details

See example for the element order in the vectors : inpboxc2.png To get the menu just use the following code: vlabel<-c('list 1','list 2') vcombo1<-c('a','b','c','d') vcombo2<-c('1','2','3') inp<-c('0','0') ans<-inpboxc2(vlabel,vcombo1,vcombo2,inp)

References

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