pickCheckboxNamesAndLabels {shinyGizmo}R Documentation

Generate names and labels

Description

Two functions extracting group names and options labels from defined choices.

Usage

pickCheckboxNames(choices)

pickCheckboxLabels(choices)

Arguments

choices

linkpickCheckboxInput choices list.

Value

Named list object defining labels for component checkbox options, or named vector storing labels for each checkbox.

Examples

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)


[Package shinyGizmo version 0.4.2 Index]