editData | R Documentation |
When editing cells in a DataTable in a Shiny app, we know the row/column indices and values of the cells that were edited. With these information, we can update the data object behind the DataTable accordingly.
editData(data, info, proxy = NULL, rownames = TRUE, resetPaging = FALSE, ...)
data |
The original data object used in the DataTable. |
info |
The information about the edited cells. It should be obtained
from |
proxy , resetPaging , ... |
(Optional) If |
rownames |
Whether row names are displayed in the table. |
The updated data object.
For factor columns, new levels would be automatically added when necessary
to avoid NA
coercing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.