for_each_col | R Documentation |
Apply a column setter function to multiple columns
for_each_col(widget, columns = NULL, .f, ...)
widget |
A |
columns |
(character vector): The columns the column setter function ( |
.f |
(function): The column setter function that updates the column settings. |
... |
Arguments that are passed to |
The updated tabulator()
HTML widget
numeric_cols <- c("Sepal_Length", "Sepal_Width", "Petal_Length", "Petal_Width")
tabulator(iris) |>
for_each_col(numeric_cols, .f = set_header_filter, type = "number", func = "<=")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.