title: R Filtering results using text input from a select box or selectInput
body: <p>I am learning/playing/modifying Winston's great movie explorer in the shiny gallery.</p>
  
  <p>Here is his server.ui code. <a href="https://github.com/wch/movies/blob/master/server.R" rel="nofollow">https://github.com/wch/movies/blob/master/server.R</a></p>
  
  <p>In his example, he used simple numeric slider range filtering for numeric movie data.</p>
  
  <p>That was followed with text filtering, and this is where I run into error.</p>
  
  <p>He used text input, (textInput <a href="http://shiny.rstudio.com/gallery/widgets-gallery.html" rel="nofollow">http://shiny.rstudio.com/gallery/widgets-gallery.html</a>)</p>
  
  <p>I run into error attempting to filter (possibly multiple) text values from a list with a select box, (selectInput <a href="http://shiny.rstudio.com/gallery/widgets-gallery.html" rel="nofollow">http://shiny.rstudio.com/gallery/widgets-gallery.html</a>).</p>
  
  <pre><code># Optional: filter by director
  if (!is.null(input$director) &amp;&amp; input$director != "") {
  director &lt;- paste0("%", input$director, "%")
  m &lt;- m %&gt;% filter(Director %like% director)
  }
  </code></pre>
  
  <p>Attempting to implement his director filter code identically, other than supplying "director" via a select box (rather than textInput), RStudio responds with...</p>
  
  <pre><code>Error in filter_impl(.data, dots(...), environment()) : 
  could not find function "%like%"
  </code></pre>
  
  <p>After much digging I believe that though it wasn't mentioned, I also may need the library(data.table) installed.</p>
  
  <p>After installing and loading data.table, the error now changes to </p>
  
  <pre><code>Warning in min(x) : no non-missing arguments to min; returning Inf
  Warning in max(x) : no non-missing arguments to max; returning -Inf
  Warning in min(x) : no non-missing arguments to min; returning Inf
  Warning in max(x) : no non-missing arguments to max; returning -Inf
  Error in fdata[1, 1] : incorrect number of dimensions
  </code></pre>
  
  <p>I believe the warnings (not errors) refer to ggvis, </p>
  
  <p>The fdata error is occurs on line 61 of his server.r code</p>
  
  <p>m &lt;- as.data.frame(m)</p>
  
  <p>And this is where I find myself completely at a loss as for how to proceed.</p>
  
  <p>The solution would either include an arguably superior method of filtering, or help me put the wheels back on this example's wagon.</p>
  
  <p>Thank you for your time.</p>
  
  <p>Oh my goodness! 
  I am stunned by the rapid responses, they were responding before the full question was clearly typed.
  I am importing a CSV rather than using the SQL tie in.
  All 4 librarys are loaded.</p>