Description Usage Arguments Details Author(s) See Also Examples
Create multiple shiny selectInput
widgets
1 2 | selectInputs(list = stop("'list' must be provided"), prefix = "",
minsize = 4, ...)
|
list |
a named list object. |
prefix |
a character string to prepend inputIds. |
Create list of shiny ui widgets based on list with label and choices.
Bo Werth <bo.werth@gmail.com>
https://github.com/rstudio/shiny
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.