widgetVariables: Widget to select variables of a dataset

Description Usage Arguments Details Note See Also Examples

Description

This widget needs an widgetObserve to update data set changes to the variable selectors.

Usage

1

Arguments

env

widget: data set widget

...

lists: parameter lists for selectInput to select one variable

Details

Usually all variables of data frame are offered. If the parameter list for selectInputs contain a parameter vartype=func then only the variables can be selected for which the func delivers TRUE. An example would be vartype=is.factor such that the variable selector just offers the categorical variables of the data frame. The widget must be used together with widgetDataset.

Note

The function will produce a Shiny error if not all data sets read contain at least one appropiate variable.

See Also

selectInput, sliderInput, widgetDataset

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # Press ESC after finishing the app
  demo(testDataset1) # one variable
  demo(testDataset2) # two variables
  demo(testDataset3) # two variables: one numeric, one factor
  demo(testDataset3Lang)

## End(Not run)

sigbertklinke/mmstat documentation built on May 14, 2019, 8:36 a.m.