API reference
Visualizing tables
TableWidgets.head
— Function.head(t, r=6)
Show first r
rows of table t
as HTML table.
Filtering data
TableWidgets.categoricalselector
— Function.categoricalselector(v::AbstractArray, f=filter)
Create as many checkboxes as the unique elements of v
and use them to select v
. By default it returns a filtered version of v
: use categoricalselector(v, map)
to get the boolean vector of whether each element is selected.
TableWidgets.rangeselector
— Function.rangeselector(v::AbstractArray, f=filter)
Create a rangepicker
as wide as the extrema of v
and uses to select v
. By default it returns a filtered version of v
: use rangeselector(v, map)
to get the boolean vector of whether each element is selected. Missing data is excluded from the range automatically.
TableWidgets.selector
— Function.selector(v::AbstractArray, f=filter)
Create a textbox
where the user can type in an anonymous function that is used to select v
. _
can be used to denote the funcion argument, e.g. _ > 0
. By default it returns a filtered version of v
: use selector(v, map)
to get the boolean vector of whether each element is selected
TableWidgets.addfilter
— Function.addfilter(t; readout = true)
Create selectors (categoricalselector
, rangeselector
, selector
are supported) and delete them for various columns of table t
. readout
denotes whether the table will be displayed initially. Outputs the filtered table.
Processing data
TableWidgets.dataeditor
— Function.dataeditor(t, rows; label = "Show table")
Create a textbox to preprocess a table: displays the result using toggled(head(t, rows))
.