filter_select | R Documentation |
Creates a select box or list of checkboxes, for filtering a
SharedData
object based on categorical data.
filter_select(id, label, sharedData, group, allLevels = FALSE, multiple = TRUE)
filter_checkbox(
id,
label,
sharedData,
group,
allLevels = FALSE,
inline = FALSE,
columns = 1
)
id |
An HTML element ID; must be unique within the web page |
label |
A human-readable label |
sharedData |
|
group |
A one-sided formula whose values will populate this select box. Generally this should be a character or factor column; if not, it will be coerced to character. |
allLevels |
If the vector described by |
multiple |
Can multiple values be selected? |
inline |
If |
columns |
Number of columns the options should be arranged into. |
## Only run examples in interactive R sessions
if (interactive()) {
sd <- SharedData$new(chickwts)
filter_select("feedtype", "Feed type", sd, "feed")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.