selectCLInput | R Documentation |
Create a select list that can be used to choose a single or multiple items from a list of values.
selectCLInput(input_id, label, choices, selected = NULL, multiple = FALSE)
input_id |
The input slot that will be used to access the value |
label |
Display label for the control, or |
choices |
List of values to select from. If elements of the list are
named, then that name — rather than the value — is displayed to the
user. It's also possible to group related inputs by providing a named list
whose elements are (either named or unnamed) lists, vectors, or factors. In
this case, the outermost names will be used as the group labels (leveraging
the |
selected |
The initially selected value (or multiple values if |
multiple |
Is selection of multiple items allowed? |
selectCLInput( "letter", "Select a letter", LETTERS )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.