pickCheckboxNamesAndLabels | R Documentation |
Two functions extracting group names and options labels from defined choices.
pickCheckboxNames(choices) pickCheckboxLabels(choices)
choices |
linkpickCheckboxInput choices list. |
Named list object defining labels for component checkbox options, or named vector storing labels for each checkbox.
choices_unnamed <- list( fruits = c("orange", "apple", "lemon"), vegetables = c("potato", "carrot", "broccoli") ) pickCheckboxNames(choices_unnamed) pickCheckboxLabels(choices_unnamed) choices_named <- list( fruits = c("Orange" = "orange", "Apple" = "apple", "Lemon" = "lemon"), vegetables = c("Potato" = "potato", "Carrot" = "carrot", "Broccoli" = "broccoli") ) pickCheckboxNames(choices_named) pickCheckboxLabels(choices_named)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.