widgetDataset: Widget for data set and variable selection

Description Usage Arguments Value See Also Examples

Description

Reads in all *.rds or *.RDS files from the first non-empty directory in pathes and extracts the variables. Each file must contain one data frame only. The widget must be used together with widgetVariables.

Usage

1
2
3
4
widgetDataset(inputId, pattern = c("^[[:alnum:]]+.rds$",
  "^[[:alnum:]]+.RDS$"), pathes = c(".", find.package("mmstat")),
  duplicates.ok = FALSE, datasettype = is.data.frame, data = list(),
  lang = NULL)

Arguments

inputId

character: widget name

pattern

character: a regular expression. Only file names which match the regular expression will be read (default: c('^[[:alnum:]]+.rds$', '^[[:alnum:]]+.RDS$'))

pathes

character: directories to read data files from (default: c('.', find.package('mmstat')))

duplicates.ok

logical: can variables be in a selection be used more than once? (default: FALSE)

datasettype

logical function: should data set used? (default: is.data.frame)

data

list: selectInput parameter for the data set(s) (default: list())

lang

widget: language widget (or NULL)

Value

a widget object (environment)

See Also

selectInput, sliderInput, widgetVariables

Examples

1
2
3
4
5
6
7
## Not run: 
  shinyDemo('testDataset1') # one variable
  shinyDemo('testDataset2') # two variables
  shinyDemo('testDataset3') # two variables: one numeric, one factor
  shinyDemo('testDataset3Lang')

## End(Not run)

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