menu2 {grand} | R Documentation |
Returns menu()
response as choice text
Description
Returns menu()
response as choice text
Usage
menu2(choices, title, loop = FALSE)
Arguments
choices |
a character vector of choices |
title |
a character string to be used as the title of the menu. |
loop |
boolean: should the menu loop to allow multiple choices? |
Value
string: the chosen option
Examples
choice <- menu2(choices = c("A", "B", "C"), title = "Choose an option", loop = TRUE)
[Package grand version 0.9.0 Index]