menu2 | R Documentation |
menu()
response as choice textReturns menu()
response as choice text
menu2(choices, title, loop = FALSE)
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? |
string: the chosen option
choice <- menu2(choices = c("A", "B", "C"), title = "Choose an option", loop = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.