I have the following code. I want to fill the missing value of the rhandsontable object with a bolded number (or may be with red color) once the "go" button is clicked, given the relationship of calculating the value as
datacopy[16, "wt"]= datacopy[16, "mpg"] + datacopy[16, "cyl"]
So the output table is to be rhandsontable with no missing value (missing value been replaced). Does anyone know how I can do this? thank you very much. :)
library(shiny)
library(datasets)
library(rhandsontable)
ui=fluidPage(
br(), br(), actionButton("update", "go", class="success"), br(), br(),
rHandsontableOutput("table1")
)
server=function(input, output, session) {
mt=reactive({
datacopy= data.table(mtcars)
datacopy[16, "wt"] <- NA
datacopy
})
output$table1=renderRHandsontable({
rhandsontable(mt())
})
}
shinyApp(ui,server)