Replace the data object of a table output and avoid regenerating the full table, in which case the state of the current table will be preserved (sorting, filtering, and pagination) and applied to the table with new data.
replaceData(proxy, data, ..., resetPaging = TRUE, clearSelection = "all")
a proxy object created by dataTableProxy()
the new data object to be loaded in the table
other arguments to be passed to dataTableAjax()
passed to reloadData()