shiny (version 0.7.0)

checkboxGroupInput: Checkbox Group Input Control

Description

Create a group of checkboxes that can be used to toggle multiple choices independently. The server will receive the input as a character vector of the selected values.

Usage

checkboxGroupInput(inputId, label, choices,
    selected = NULL)

Arguments

inputId
Input variable to assign the control's value to.
label
Display label for the control.
choices
List of values to show checkboxes for. If elements of the list are named then that name rather than the value is displayed to the user.
selected
Names of items that should be initially selected, if any.

Value

  • A list of HTML elements that can be added to a UI definition.

See Also

checkboxInput, updateCheckboxGroupInput

Examples

Run this code
checkboxGroupInput("variable", "Variable:",
                   c("Cylinders" = "cyl",
                     "Transmission" = "am",
                     "Gears" = "gear"))

Run the code above in your browser using DataCamp Workspace