Helper function for creating a cognostic for a link to another display in a filtered state
cog_disp_filter(
display,
var,
val,
desc = "link",
group = "common",
default_label = FALSE,
default_active = FALSE,
filterable = FALSE,
sortable = FALSE
)
A string indicating the name of the display to link to.
A string indicating the variable name to filter on.
A string indicating the value of the filter.
a description for this cognostic value
optional categorization of the cognostic for organizational purposes in the viewer (currently not implemented in the viewer)
should this cognostic be used as a panel label in the viewer by default?
should this cognostic be active (available for sort / filter / sample) by default?
should this cognostic be filterable? Default is TRUE
. It can be useful to set this to FALSE
if the cognostic is categorical with many unique values and is only desired to be used as a panel label.
should this cognostic be sortable?