set_calculation {rtabulator} | R Documentation |
Set calculation
Description
Set calculation
Usage
set_calculation(
widget,
column,
func = c("avg", "max", "min", "sum", "count", "unique"),
precision = 2,
pos = c("top", "bottom")
)
Arguments
widget |
A |
column |
(character): The column the |
func |
(character): The calculation function to be applied
to the values of the |
precision |
(integer) The number of decimals to display.
Set to |
pos |
(character): Position at which calculated values are displayed. |
Value
The updated tabulator()
HTML widget
Examples
tabulator(iris) |>
set_calculation("Sepal_Length", "avg")
[Package rtabulator version 0.1.2 Index]