Replace all data in a Tabulator table
tabulator_replace_data.Rd
This function completely replaces the existing data in a Tabulator table with new data.
Unlike tabulator_update_data
, this function replaces the entire dataset at once
rather than updating it in chunks.
Arguments
- proxy
A Tabulator proxy object created by
tabulator_proxy()
- data
A data frame containing the new data to display in the table
Examples
if (FALSE) { # \dontrun{
# In server function
proxy <- tabulator_proxy("table_id")
new_data <- data.frame(
name = c("John", "Jane"),
age = c(25, 30)
)
tabulator_replace_data(proxy, new_data)
} # }