Displaying 1 result from an estimated 1 matches for "menuifchoices".
2014 Sep 15
1
apply block of if statements with menu function
Subscribers,
apply block of if statements with menu function
Subscribers,
For a menu:
menu(c('a','b','c','d'))
How to create a function that will apply to specific menu choice
objects? For example:
object1<-function (menuifchoices) {
menu1<-menu(c('a','b','c','d'))
if (menu1==1)
...
menu1a<-menu...
if (menu1a==1)
...
menu2a<-menu...
if (menu2a==1)
...
menu2
<-menu(c('a','b','c','d'))
if (menu1==2)
...
}
The request action is that a us...