filterPanelServer: Filter server

View source: R/filterPanel.R

filterPanelServerR Documentation

Filter server

Description

Process and return output from user interaction with corresponding ui

Usage

filterPanelServer(id, dt, dtkey = "ID", filterconf)

Arguments

id

Character ID for specifying namespace, see shiny::NS.

dt

A data.table.

dtkey

Name of unique key column in dt, defaulting to "ID".

filterconf

A list with names matching columns in lhdata to be used as filters and elements "type" with their input widget types, "selected" for the initial selection, and "conditional" with a boolean value for whether this is a filter that should initially be hidden/ignored. See sideFilterUI.

Details

Users are essentially filtering upon values in columns of dt; the applied combination gives output dtkey entries, the calculation of which is actually delegated to the function filter4j. Because it may not make sense to use all filters, filterconf allows specifying which combination of filters should be active.


avucoh/DIVE documentation built on Aug. 29, 2023, 6:02 p.m.