title: Toggle (i.e. hide/unhide) rows in datatable
body: <p>Is there a way to implement this: I have got a datatable displayed and I would like to toggle a particular row if a row index is selected and a toggle button is clicked. I just want to hide the row, not deleting from the datatable completely.
  I have got the ui as following. How to implement the server side?</p>
  <pre><code>library(shiny)
  library(DT)
  
  data &lt;- data.frame(
      Name = c(&quot;Andy&quot;, &quot;Bob&quot;, &quot;Chad&quot;),
      Job = c(&quot;Clerk&quot;, &quot;Pilot&quot;, &quot;Electrician&quot;)
  )
  
  ui &lt;- fluidPage(
      
      box(id = &quot;myBox&quot;, title = NULL, 
          selectInput(inputId = &quot;row_index&quot;, label = &quot;Row to Toggle&quot;, choices = c(1,2,3))
      ),
      actionButton(inputId = &quot;button&quot;, label = &quot;Show/Hide&quot;),
      DT::dataTableOutput(('DTOut'))
  )
  
  server &lt;- function(input, output) {
      
      output$DTOut &lt;- DT::renderDataTable({
          data
      })
  }
  shinyApp(ui = ui, server = server)
  </code></pre>