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
)

Arguments

display

A string indicating the name of the display to link to.

var

A string indicating the variable name to filter on.

val

A string indicating the value of the filter.

desc

a description for this cognostic value

group

optional categorization of the cognostic for organizational purposes in the viewer (currently not implemented in the viewer)

default_label

should this cognostic be used as a panel label in the viewer by default?

default_active

should this cognostic be active (available for sort / filter / sample) by default?

filterable

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.

sortable

should this cognostic be sortable?