Create a Handsontable.js widget.
rhandsontable(
data,
colHeaders,
rowHeaders,
comments = NULL,
useTypes = TRUE,
readOnly = NULL,
selectCallback = FALSE,
width = NULL,
height = NULL,
digits = 4,
debug = NULL,
search = FALSE,
...
)a data.table, data.frame or matrix
a vector of column names. If missing colnames
will be used. Setting to NULL will omit.
a vector of row names. If missing rownames
will be used. Setting to NULL will omit.
matrix or data.frame of comments; NA values are ignored
logical specifying whether column classes should be mapped to equivalent Javascript types. Note that Handsontable does not support column add/remove when column types are defined (i.e. useTypes == TRUE in rhandsontable).
logical specifying whether the table is editable
logical enabling the afterSelect event to return data. This can be used with shiny to tie updates to a selected table cell.
numeric table width
numeric table height
numeric passed to jsonlite::toJSON
numeric Javascript log level
logical specifying if the data can be searched (see https://jrowen.github.io/rhandsontable/#Customizing and Shiny example in inst/examples/rhandsontable_search)
passed to hot_table and to the params property of the widget
For full documentation on the package, visit https://jrowen.github.io/rhandsontable/
library(rhandsontable)
DF = data.frame(val = 1:10, bool = TRUE, big = LETTERS[1:10],
small = letters[1:10],
dt = seq(from = Sys.Date(), by = "days", length.out = 10),
stringsAsFactors = FALSE)
rhandsontable(DF, rowHeaders = NULL)
#> Warning: as.character(td, ..) no longer obeys a 'format' argument; use format(td, ..) ?