set_data {rhandsontable} | R Documentation |
Handsontable widget
Description
Set data inside a Handsontable instance without recreating the widget. Send the new values as a vector of rows, a vector of columns, and a vector of values. If different length vectors are supplied then the shorter ones are recycled to match the length of the longest.
Usage
set_data(id, row, col, val, session, zero_indexed = F)
Arguments
id |
The id of the table to interact with. |
row |
Integer vector of row indexes. |
col |
Integer vector the column indexes. |
val |
Vector of values to set at each row-col pair. |
session |
The session that is associated with your shiny server function. The table is only interactive when used in shiny so we only use set_data when the table is in shiny. |
zero_indexed |
Default FALSE. Set to TRUE if you are supplying row and col indexes that are already 0-based. |
[Package rhandsontable version 0.3.8 Index]