radioButtons

0th

Percentile

Create radio buttons

Create a set of radio buttons used to select an item from a list.

Usage
radioButtons(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 select from (if elements of the list are named then that name rather than the value is displayed to the user)
selected
Name of initially selected item (if not specified then defaults to the first item)
Value

  • A set of radio buttons that can be added to a UI definition.

Aliases
  • radioButtons
Examples
radioButtons("dist", "Distribution type:",
             c("Normal" = "norm",
               "Uniform" = "unif",
               "Log-normal" = "lnorm",
               "Exponential" = "exp"))
Documentation reproduced from package shiny, version 0.5.0, License: GPL-3

Community examples

Looks like there are no examples yet.