set_calculation | R Documentation |
Set calculation
set_calculation(
widget,
column,
func = c("avg", "max", "min", "sum", "count", "unique"),
precision = 2,
pos = c("top", "bottom")
)
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. |
The updated tabulator()
HTML widget
tabulator(iris) |>
set_calculation("Sepal_Length", "avg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.