and: AND module server logic

Description Usage Arguments Value

View source: R/and.R

Description

This function evaluates output from multiple OR modules by combining with a logical and.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
and(
  input,
  output,
  session,
  data,
  show.elements = NULL,
  element.grouping = NULL,
  column.labels = NULL,
  delimiter = NULL,
  multiple = TRUE,
  contains = FALSE,
  ranged = FALSE,
  step = 100,
  reset = NULL
)

Arguments

input

Shiny's input object.

output

Shiny's output object.

session

Shiny's session object.

data

The input data.frame for which selection should be provided. Evaluates an OR module for each column (Supports reactive).

show.elements

A Vector of column names determining which OR modules are shown. Defaults to names(data). (Supports reactive)

element.grouping

Group features in boxes. (Data.table: first column = columnnames, second column = groupnames) (Supports reactive)

column.labels

Additional labels for the columns, defaults to names(data).

delimiter

A single character, or a vector indicating how column values are delimited. (Fills vector sequentially if needed)(Supports reactive)

multiple

Whether or not textual ORs should allow multiple selections. (Fills vector sequentially if needed)(Supports reactive)

contains

Whether or not textual ORs are initialized as textInput checking entries for given string. (Fills vector sequentially if needed)(Supports reactive)

ranged

Whether or not numeric ORs are ranged. (Fills vector sequentially if needed)(Supports reactive)

step

Set numeric ORs slider steps. (Fills vector sequentially if needed)(Supports reactive)

reset

Reactive which will cause a UI reset on change.

Value

A reactive containing named list with a boolean vector of length nrow(data) (bool), indicating whether an observation is selected or not and a vector of Strings showing the used filter (text).


wilson documentation built on April 19, 2021, 5:07 p.m.