selectInputs: Multiple selectInput

Description Usage Arguments Details Author(s) See Also Examples

View source: R/selectInputs.R

Description

Create multiple shiny selectInput widgets

Usage

1
2
selectInputs(list = stop("'list' must be provided"), prefix = "",
  minsize = 4, ...)

Arguments

list

a named list object.

prefix

a character string to prepend inputIds.

Details

Create list of shiny ui widgets based on list with label and choices.

Author(s)

Bo Werth <[email protected]>

See Also

https://github.com/rstudio/shiny

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
listexample <- list(fruits = c("mango", "apple"),
                    color = c("orange", "green"))

selectInputs(list = listexample, prefix = "dim_")

## generate list from data frame
df <- data.frame(fruits = c("mango", "apple", "mango"),
                 color = c("orange", "green", "red"))

list.df <- apply(df, 2, unique)

selectInputs(list = list.df, prefix = "dim_")

## End(Not run)

bowerth/nsoApi documentation built on July 1, 2017, 11 p.m.