How to store specific data in checkboxInput and get the data from it?

26 views
Skip to first unread message

Thiam Kok Lau

unread,
May 3, 2015, 10:06:46 PM5/3/15
to shiny-...@googlegroups.com
I don't understand how checkboxInput() works in Shiny. For instance, I want to create a checkbox input with some data in it,

`<input type="checkbox" id="species" name="species_particles" value="nox"/>`

But all I can do with Shiny is,

```
checkboxInput(inputId = "species",
                    label = "PM 2.5 particulates ug/m3",
                    value = FALSE)
```

Where can I store `value="nox"` and `name="species_particles"`??

And the most important - how can I get this data in `server.R`?

in my server.R, I have this `species = input$species` and of course I only get this data - `FALSE`

What can I do?

adrie...@hotmail.com

unread,
May 4, 2015, 4:49:18 AM5/4/15
to shiny-...@googlegroups.com
What are value="nox" and name="species_particles" for ?

Sigbert Klinke

unread,
May 6, 2015, 6:56:31 AM5/6/15
to shiny-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages